You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
const { defineConfig } = require("@vue/cli-service");
|
|
|
|
|
|
|
|
|
|
module.exports = defineConfig({
|
|
|
|
|
transpileDependencies: true,
|
|
|
|
|
publicPath: './',
|
|
|
|
|
lintOnSave: true,
|
|
|
|
|
productionSourceMap: false,
|
|
|
|
|
devServer: {
|
|
|
|
|
port: 8080,
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'https://lcrm3api.lunz.cn',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
ws: true,
|
|
|
|
|
// pathRewrite: {
|
|
|
|
|
// '^/api': ''
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
'/gatewayapi': {
|
|
|
|
|
target: 'https://gatewayapi.lunz.cn/api',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
ws: true,
|
|
|
|
|
pathRewrite: {
|
|
|
|
|
'/gatewayapi': ''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
'/weather': {
|
|
|
|
|
target: 'https://api.map.baidu.com',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
ws: true,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|