如上图这种情况。
在router/index.js中最下方加入mode: 'history'

const router = new VueRouter({
  mode: 'history',
  routes
})

Last modification:March 7, 2021
如果觉得我的文章对你有用,请随意赞赏