问题1:
主页面index.html加载失败,原因是资源上下文不正确,vue.config.js配置一下上下文就好了,配置如下:
module.exports = {
publicPath: process.env.NODE_ENV === 'production'? '/monitor/' : '/'
};
问题2:
问题的原因是 vue-Li4脚手架 vue-router 默认路由mode是history 兼容性不好 改成hash模式就可以了!
问题1:
主页面index.html加载失败,原因是资源上下文不正确,vue.config.js配置一下上下文就好了,配置如下:
module.exports = {
publicPath: process.env.NODE_ENV === 'production'? '/monitor/' : '/'
};
问题2:
问题的原因是 vue-Li4脚手架 vue-router 默认路由mode是history 兼容性不好 改成hash模式就可以了!
相关文章: