feat: 更新正式环境API地址并默认选用

This commit is contained in:
2026-10-30 11:59:10 +08:00
parent a4dbcbe504
commit b1404fdd89
7 changed files with 46 additions and 36 deletions
+5 -5
View File
@@ -117,7 +117,7 @@
/**
* Copyright (c) 2013-Now http://aidex.vip All rights reserved.
*/
import config, { getTestApiUrl } from '@/common/config.js';
import config, { getDefaultApiUrl } from '@/common/config.js';
import base64 from '@/common/base64.js';
import util from '@/common/util.js';
import md5 from '@/common/md5.js';
@@ -135,7 +135,7 @@ export default {
password: ""
},
showApiUrlPicker: false,
selectedApiUrl: getTestApiUrl(),
selectedApiUrl: getDefaultApiUrl(),
customApiUrl: 'http://192.168.1.66:50002/hcscm_weave/pda/v1',
apiUrlList: config.devApiUrlOptions,
phoneNo: '',
@@ -169,9 +169,9 @@ export default {
},
onShow() {
const testUrl = getTestApiUrl();
util.updateApiUrl(testUrl);
this.selectedApiUrl = testUrl;
const defaultUrl = getDefaultApiUrl();
util.updateApiUrl(defaultUrl);
this.selectedApiUrl = defaultUrl;
uni.getStorage({
key: 'UserInfo',