VUE Webpack App doesn't work properly without JavaScript enabled
1、本地开发没有问题,线上部署提示:
We're sorry but Webpack App doesn't work properly without JavaScript enabled. Please enable it to continue.
header请求头中:
状态值为200
2、使用route为history模式
3、配置:
vue版本:2.6
vue.config.js:
module.exports = {
// 选项...
// publicPath: getPublicPath('erp-static'),
publicPath: '/',
}
route.js:
const router = new Router({
mode: 'history',
base: "",//
……
});
回答:
你试试hash模式,不想用的话,看下你接口是请求的同域吗?是不是nginx没配置接口转发
以上是 VUE Webpack App doesn't work properly without JavaScript enabled 的全部内容, 来源链接: utcz.com/p/935926.html