Files
monitor/vue.config.js

26 lines
940 B
JavaScript
Raw Normal View History

2023-05-05 15:55:40 +08:00
const {defineConfig} = require("@vue/cli-service");
2022-09-15 09:01:22 +08:00
module.exports = defineConfig({
2023-05-05 15:55:40 +08:00
transpileDependencies: true,
lintOnSave: false,
devServer: {
proxy: {
"/api": {
target: "http://81.68.90.198:8088",
changeOrigin: true,
pathRewrite: {
"^/api": "", // 假设我们想把 localhost:8888/api/login 变成www.baidu.com/login 就需要这么做 js把路径中的/api去掉
},
},
"/video": {
target: "http://106.74.152.123:10000",
changeOrigin: true,
pathRewrite: {
"^/video": "", // 假设我们想把 localhost:8888/api/login 变成www.baidu.com/login 就需要这么做 js把路径中的/api去掉
},
}
2023-03-27 11:10:09 +08:00
},
},
2023-05-05 15:55:40 +08:00
publicPath: "./",
assetsDir: "../apps/com.awspaas.user.apps.cmp/monitor",
2022-10-20 23:55:57 +08:00
});