This commit is contained in:
Pengxiansen
2025-02-28 20:26:30 +08:00
parent 403f234c7e
commit f6f4196bb2
2 changed files with 19 additions and 19 deletions

View File

@@ -18,8 +18,8 @@ import { boeRequest } from "@/api/request";
// "application/x-www-form-urlencoded";
axios.defaults.withCredentials = true;
const http = axios.create({
baseURL: '/growth',
// baseURL: process.env.VUE_APP_BASE_API_GROWTH,
// baseURL: '/growth',
baseURL: process.env.VUE_APP_BASE_API_GROWTH,
timeout: 1000 * 15,
// headers: { "Content-Type": "multipart/form-data" },
headers: { "Content-Type": "application/json" },

View File

@@ -18,16 +18,16 @@ module.exports = defineConfig({
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,
"/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, //表示是否改变原域名
@@ -46,20 +46,20 @@ module.exports = defineConfig({
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
changeOrigin: true, //表示是否改变原域名
},
// "/report": {
// target: 'https:' + process.env.VUE_APP_BOE_API_URL,
// changeOrigin: true, //表示是否改变原域名
// pathRewrite: {
// // "^/manageApi": "",
// },
// },
"/report": {
target: 'http://192.168.31.211:18878',
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
changeOrigin: true, //表示是否改变原域名
pathRewrite: {
"^/report": "",
// "^/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,