From bf4cd1a17c1bf32a72fe1edb41a0014155d2646e Mon Sep 17 00:00:00 2001 From: yziiy <15979918+mayday-yziiy@user.noreply.gitee.com> Date: Fri, 12 Dec 2025 17:34:55 +0800 Subject: [PATCH] 1 --- src/utils/http/config.ts | 2 +- vite.config.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils/http/config.ts b/src/utils/http/config.ts index 3258f3e..aa06eed 100644 --- a/src/utils/http/config.ts +++ b/src/utils/http/config.ts @@ -1,4 +1,4 @@ -export const URL = "https://test.vespa.qxyushen.top"; +export const URL = "https://yushengapi.qxyushen.top"; // https://vespa.qxyushen.top 正式 // http://1.13.101.98 // https://test.vespa.qxyushen.top diff --git a/vite.config.ts b/vite.config.ts index 0749b37..cdb49f1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -35,11 +35,9 @@ export default ({ mode }: ConfigEnv): UserConfigExport => { onProxyReq: (proxyReq, req, res) => { if (req.method === 'OPTIONS') { proxyReq.method = 'OPTIONS'; - // 设置CORS头 https://admin.qxyushen.top // https://test.vespa.qxyushen.top - // 'http://admin.vespa.xscmmidi.site' // 'http://yushenggliht.qxyushen.top' - res.setHeader('Access-Control-Allow-Origin', 'https://test.vespa.qxyushen.top'); + res.setHeader('Access-Control-Allow-Origin', 'http://yushenggliht.qxyushen.top'); res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS'); res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization'); res.end();