mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-06 17:36:44 +08:00
90 lines
3.2 KiB
JavaScript
90 lines
3.2 KiB
JavaScript
/*
|
|
* @Author: lixg lixg@dongwu-inc.com
|
|
* @Date: 2022-11-21 14:32:52
|
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
|
* @LastEditTime: 2023-02-24 09:03:55
|
|
* @FilePath: /fe-manage/vue.config.js
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
const { defineConfig } = require("@vue/cli-service");
|
|
|
|
module.exports = defineConfig({
|
|
lintOnSave: false,
|
|
publicPath: process.env.VUE_APP_BASE,
|
|
outputDir: process.env.VUE_APP_OUTPUT_DIR,
|
|
devServer: {
|
|
port: 8070,
|
|
client: {
|
|
overlay: false,// 解决代码抛出异常
|
|
},
|
|
proxy: {
|
|
// "/professional": {
|
|
// target: 'http://192.168.31.211:32002',
|
|
// // target: 'http://192.168.50.195:32002',
|
|
// // target: 'http://192.168.86.195:32002',
|
|
// changeOrigin: true,
|
|
// },
|
|
"/growth": {
|
|
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
|
changeOrigin: true,
|
|
},
|
|
"/manageApi": {
|
|
target: 'https:' + process.env.VUE_APP_PROXY_URL,
|
|
changeOrigin: true, //表示是否改变原域名
|
|
pathRewrite: {
|
|
"^/manageApi": "",
|
|
},
|
|
}, "/userbasic": {
|
|
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
|
changeOrigin: true, //表示是否改变原域名
|
|
},
|
|
"/systemapi": {
|
|
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
|
changeOrigin: true, //表示是否改变原域名
|
|
},
|
|
"/api": {
|
|
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
|
changeOrigin: true, //表示是否改变原域名
|
|
},
|
|
// "/reportsnake": {
|
|
// target:'https:' + process.env.VUE_APP_BOE_API_URL,
|
|
// changeOrigin: true, //表示是否改变原域名
|
|
// pathRewrite: {
|
|
// // "^/reportsnake": "",
|
|
// },
|
|
// },
|
|
"/reportsnake": {
|
|
target: 'http://127.0.0.1:32004',
|
|
changeOrigin: true, //表示是否改变原域名
|
|
pathRewrite: {
|
|
"^/reportsnake": "",
|
|
},
|
|
onProxyReq(proxyReq, req) {
|
|
console.log('Proxying request to:', req.url); // 调试日志
|
|
}
|
|
},
|
|
"/report": {
|
|
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
|
changeOrigin: true, //表示是否改变原域名
|
|
pathRewrite: {
|
|
// "^/manageApi": "",
|
|
},
|
|
},
|
|
|
|
|
|
// "/report": {
|
|
// target: 'http://192.168.31.211:18878',
|
|
// changeOrigin: true, //表示是否改变原域名
|
|
// pathRewrite: {
|
|
// "^/report": "",
|
|
// },
|
|
// },
|
|
"/activityApi": {
|
|
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
|
changeOrigin: true,
|
|
},
|
|
|
|
},
|
|
},
|
|
});
|