vue-router 默认为 hash 模式,想要去掉地址中的 # 号,只需要将mode改为history模式 const router = new Router({ mode:'history', routes : [ {path:'/',redirect:'/home',meta:{requireAuth:false}} ] })