STORES–>Configuration–>GENNERAL –>Web –>Url Options

Add Store Code to Urls 设置为Yes