vue打包后空白路由失效(脚手架3的处理方法)
vue脚手架打包后空白路由失效在项目下面创建一个vue.config.js的文件,和src同目录,只能是这个名字。module.exports = { assetsDir: 'static', parallel: false, publicPath: './',}更改路由下面的index.js的路由配置文件。把路由模式从history改为hash模式const router = new VueRouter({ mode:'hash', routes})expo