const router = new VueRouter({
// mode: 'history',
base: process.env.BASE_URL,
routes
})
export default router
1、将路由器这里注释掉 // mode: 'history',
2、创建vue.config.js文件
![](https://img.haomeiwen.com/i8034712/20fa5fad772f93c5.png)
const router = new VueRouter({
// mode: 'history',
base: process.env.BASE_URL,
routes
})
export default router
1、将路由器这里注释掉 // mode: 'history',
2、创建vue.config.js文件
本文标题:vue cli4打包不出现东西,或者空白
本文链接:https://www.haomeiwen.com/subject/kguynhtx.html
网友评论