页面空白,报错:we’re sorry but groups doesn’t work properly without JavaScript enabled. Please enable it to continue
看到别人说的一大堆history改成hash,我试了很多都没用,我的问题是本地代理出了问题,解决方法是在vue.config.js下的
devServer: {
host: "0.0.0.0",
port: 19003,
// publicPath: './', //把这里注释掉,引用路径不对
proxy: {
"/api": {
target: "http://localhost:8088" , // 跨域访问
ws: true, // 是否启用websockets
changOrigin: true, //开启代理
secure: false, // 将安全设置为false,才能访问https开头的
pathRewrite: {
'^/api': '', //这里理解成用‘/api’代替target里面的地址
}
},
}
}
publicPath: ‘./’, //把这里注释掉,引用路径不对