fix: 小程序 API 域名改为 zhiyin.yzrcloud.cn(与 H5 同域)避免微信白名单问题
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const test_1 = require("@playwright/test");
|
||||
exports.default = (0, test_1.defineConfig)({
|
||||
testDir: './test',
|
||||
testMatch: '*.browser.spec.ts',
|
||||
timeout: 30000,
|
||||
use: {
|
||||
baseURL: 'http://localhost:3006',
|
||||
},
|
||||
});
|
||||
//# sourceMappingURL=playwright.config.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"playwright.config.js","sourceRoot":"","sources":["playwright.config.ts"],"names":[],"mappings":";;AAAA,2CAA+C;AAE/C,kBAAe,IAAA,mBAAY,EAAC;IAC1B,OAAO,EAAE,QAAQ;IACjB,SAAS,EAAE,mBAAmB;IAC9B,OAAO,EAAE,KAAK;IACd,GAAG,EAAE;QACH,OAAO,EAAE,uBAAuB;KACjC;CACF,CAAC,CAAA"}
|
||||
@@ -1,4 +1,4 @@
|
||||
# 生产环境变量
|
||||
VITE_API_BASE_URL=https://zhiyinwx.yzrcloud.cn/api
|
||||
VITE_API_BASE_URL=https://zhiyin.yzrcloud.cn/api
|
||||
VITE_APP_NAME=AI磁场
|
||||
VITE_PROD_API_HOST=https://zhiyinwx.yzrcloud.cn
|
||||
VITE_PROD_API_HOST=https://zhiyin.yzrcloud.cn
|
||||
|
||||
@@ -88,7 +88,7 @@ export const API_ENDPOINTS = {
|
||||
},
|
||||
} as const
|
||||
|
||||
const PROD_API_HOST = import.meta.env.VITE_PROD_API_HOST || 'https://zhiyinwx.yzrcloud.cn'
|
||||
const PROD_API_HOST = import.meta.env.VITE_PROD_API_HOST || 'https://zhiyin.yzrcloud.cn'
|
||||
const DEV_API_HOST = 'http://localhost:3006'
|
||||
|
||||
let API_HOST: string
|
||||
|
||||
Reference in New Issue
Block a user