diff --git a/src/utils/http/config.ts b/src/utils/http/config.ts index c1b4fac..f797465 100644 --- a/src/utils/http/config.ts +++ b/src/utils/http/config.ts @@ -1,4 +1,4 @@ -export const URL = "https://vespa.qxyushen.top"; +export const URL = "https://test.vespa.qxyushen.top"; // https://vespa.qxyushen.top 正式 // 声网appId 在这里换 -export const appIdBySw = 'a3f0f0c78307434fa1c697c3429fbdcf'; \ No newline at end of file +export const appIdBySw = '02f7339ec98947deaeab173599891932'; \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 14c26f5..7b423eb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -36,7 +36,8 @@ export default ({ mode }: ConfigEnv): UserConfigExport => { if (req.method === 'OPTIONS') { proxyReq.method = 'OPTIONS'; // 设置CORS头 https://admin.qxyushen.top - res.setHeader('Access-Control-Allow-Origin', 'https://admin.qxyushen.top'); + // https://test.vespa.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'); res.end();