diff --git a/public/config.json b/public/config.json index 6ed0209..3d9838a 100644 --- a/public/config.json +++ b/public/config.json @@ -1,5 +1,5 @@ { "tenantId": "000000", - "apiUrl": "http://124.222.254.188:8889", - "apiUrlList": ["http://124.222.254.188:8889"] -} \ No newline at end of file + "apiUrl": "", + "apiUrlList": [] +} diff --git a/src/config/index.ts b/src/config/index.ts index 3014115..000bae2 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -5,7 +5,7 @@ export type Config = { export const getConfig = async (): Promise => { const configStr = await fetch('/config.json').then(res => res.text()) - const sassUrlStr = await fetch('https://nono-1257812345.cos.ap-shanghai.myqcloud.com/sass').then(res => res.text()) + const sassUrlStr = await fetch('https://apk-web.oss-cn-beijing.aliyuncs.com/sass').then(res => res.text()) const config = JSON.parse(configStr) as Config config.apiUrl = '' @@ -84,4 +84,4 @@ const t_000000: Config = { // return { // tenantId: '000000' // } -// } \ No newline at end of file +// } diff --git a/src/utils/http/axios/index.ts b/src/utils/http/axios/index.ts index 8854f3b..badbd83 100644 --- a/src/utils/http/axios/index.ts +++ b/src/utils/http/axios/index.ts @@ -146,9 +146,8 @@ const transform: AxiosTransform = { if(config.url && config.url.endsWith("domain.txt")){ return config }else if(domain && domain.length > 0){ - // let domainUrl = domain[Math.floor((Math.random()*domain.length))]; - // config.url = domainUrl + config.url; - // config.url = domainUrl + config.url; + let domainUrl = domain[Math.floor((Math.random()*domain.length))]; + config.url = domainUrl + config.url; }else if(apiUrl && isString(apiUrl)){ config.url = `${apiUrl}${config.url}`; }