From 119c88dc11b9e0681763fd9c8f3a8591889265bd Mon Sep 17 00:00:00 2001 From: yziiy <15979918+mayday-yziiy@user.noreply.gitee.com> Date: Tue, 13 Jan 2026 09:02:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95=E7=89=88?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http/config.ts | 4 +++- vite.config.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/utils/http/config.ts b/src/utils/http/config.ts index 87679bb..0ce7304 100644 --- a/src/utils/http/config.ts +++ b/src/utils/http/config.ts @@ -1,4 +1,6 @@ -export const URL = "https://yushengapi.qxyushen.top"; +// export const URL = "https://yushengapi.qxyushen.top"; +// 预测版 +export const URL = "https://vsyusheng.qxhs.xyz"; // export const URL = "https://test.vespa.qxyushen.top"; // 声网appId 在这里换 export const appIdBySw = '02f7339ec98947deaeab173599891932'; \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index f7f831a..000cff5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -35,7 +35,8 @@ export default ({ mode }: ConfigEnv): UserConfigExport => { onProxyReq: (proxyReq, req, res) => { if (req.method === 'OPTIONS') { proxyReq.method = 'OPTIONS'; - res.setHeader('Access-Control-Allow-Origin', 'http://yushenggliht.qxyushen.top'); + res.setHeader('Access-Control-Allow-Origin', 'https://vsyusheng.qxhs.xyz'); + // res.setHeader('Access-Control-Allow-Origin', 'http://yushenggliht.qxyushen.top'); // res.setHeader('Access-Control-Allow-Origin', 'https://test.vespa.qxyushen.top'); res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS'); res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');