feat: 更新正式环境API地址并默认选用
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user