e0107b0b by zhangmeng

票务代理

1 parent 8ba77ad8
...@@ -8,7 +8,10 @@ import { ElMessage } from "element-plus"; ...@@ -8,7 +8,10 @@ import { ElMessage } from "element-plus";
8 import { useStorage } from "@vueuse/core/index"; 8 import { useStorage } from "@vueuse/core/index";
9 const language = useStorage("language", 0); 9 const language = useStorage("language", 0);
10 10
11 const baseURL = "https://ticketh5.wdsfwuxicenter.com/ticket"; //"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL 11 // const baseURL = "https://ticketh5.wdsfwuxicenter.com/ticket"; //"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL
12
13 const baseURL = "ticket"; //"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL
14
12 const timeout = 15000; // 请求超时时间 15 const timeout = 15000; // 请求超时时间
13 16
14 const http = axios.create({ 17 const http = axios.create({
......
...@@ -82,10 +82,20 @@ export default defineConfig(({ mode, command }) => { ...@@ -82,10 +82,20 @@ export default defineConfig(({ mode, command }) => {
82 rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') 82 rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '')
83 }, 83 },
84 '/dev-api': { 84 '/dev-api': {
85 // target: 'http://192.168.1.118:8081/', 85 target: 'http://192.168.1.118:8081/',
86 target: 'https://jijin.wtwuxicenter.com/stage-api', 86 // target: 'http://192.168.1.131:8081/',
87 // target: 'https://jijin.wtwuxicenter.com/stage-api',
88 // target: 'https://wdsfwuxicenter.com/stage-api/',
87 changeOrigin: true, 89 changeOrigin: true,
88 rewrite: (p) => p.replace(/^\/dev-api/, '') 90 rewrite: (p) => p.replace(/^\/dev-api/, '')
91 },
92 '/ticket': {
93 target: 'http://192.168.1.118:8098/',
94 // target: 'http://192.168.1.131:8081/',
95 // target: 'https://jijin.wtwuxicenter.com/stage-api',
96 // target: 'https://wdsfwuxicenter.com/stage-api/',
97 changeOrigin: true,
98 rewrite: (p) => p.replace(/^\/ticket/, '')
89 } 99 }
90 } 100 }
91 }, 101 },
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!