再manifest.json源码视图找到h5
在devServer: 添加 “disableHostCheck”: true
"h5": {
"devServer": {
"disableHostCheck": true
// "proxy": {
// "/apis": {
// "target": "",
// "changeOrigin": true,
// "secure": false,
// "pathRewrite": {
// "^/apis": "/"
// }
// }
// }
},
"router": {
"mode": "hash"
},
"template": "",
"title": ""
}