const router = new VueRouter({
// mode: 'history',
base: process.env.BASE_URL,
routes
})
export default router
1、将路由器这里注释掉 // mode: 'history',
2、创建vue.config.js文件
const router = new VueRouter({
// mode: 'history',
base: process.env.BASE_URL,
routes
})
export default router
1、将路由器这里注释掉 // mode: 'history',
2、创建vue.config.js文件