在router.js中修改,
const router = new VueRouter({
mode: ‘history‘,
routes: [...]
})
vue 去掉路由中的#
原文:https://www.cnblogs.com/cina33blogs/p/8366217.html