feat:增加publicPath

This commit is contained in:
wuyx
2022-11-21 18:22:18 +08:00
parent 6bc5991774
commit a8153029af

View File

@@ -8,20 +8,21 @@
*/
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
// transpileDependencies: true,
devServer: {
port: 8080,
proxy: {
"/manageApi": {
// target:"http://192.168.100.208:30001",
target: "http://111.231.196.214:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口
changeOrigin: true, //表示是否改变原域名
// secure: false,
// ws: false, //表示WebSocket协议
pathRewrite: {
"^/manageApi": "",
},
},
},
},
publicPath: '/manage',
// transpileDependencies: true,
devServer: {
port: 8080,
proxy: {
"/manageApi": {
// target:"http://192.168.100.208:30001",
target: "http://111.231.196.214:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口
changeOrigin: true, //表示是否改变原域名
// secure: false,
// ws: false, //表示WebSocket协议
pathRewrite: {
"^/manageApi": "",
},
},
},
},
});