|
@@ -236,7 +236,7 @@ export default {
|
|
|
user_name: '',
|
|
user_name: '',
|
|
|
password: '',
|
|
password: '',
|
|
|
is_password_md5: 'true',
|
|
is_password_md5: 'true',
|
|
|
- server_address: getLocalStore('server_address') || 'https://eep.utschool.cn', // 服务器地址
|
|
|
|
|
|
|
+ server_address: 'https://eep.utschool.cn', // 服务器地址
|
|
|
verification_code_image_id: '',
|
|
verification_code_image_id: '',
|
|
|
verification_code_image_text: '',
|
|
verification_code_image_text: '',
|
|
|
},
|
|
},
|
|
@@ -274,11 +274,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
init() {
|
|
init() {
|
|
|
- const isInitSeverAddress = getLocalStore('isInitSeverAddress');
|
|
|
|
|
- if (!isInitSeverAddress) {
|
|
|
|
|
- setLocalStore('server_address', this.fixedServerAddress);
|
|
|
|
|
- setLocalStore('isInitSeverAddress', true);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.updateServerAddress();
|
|
|
this.updateVerificationCode();
|
|
this.updateVerificationCode();
|
|
|
this.getLogo();
|
|
this.getLogo();
|
|
|
},
|
|
},
|
|
@@ -342,8 +338,7 @@ export default {
|
|
|
this.showUseragreement = false;
|
|
this.showUseragreement = false;
|
|
|
},
|
|
},
|
|
|
updateServerAddress() {
|
|
updateServerAddress() {
|
|
|
- setLocalStore('server_address', this.form.server_address);
|
|
|
|
|
- updateBaseURL();
|
|
|
|
|
|
|
+ updateBaseURL(this.form.server_address);
|
|
|
},
|
|
},
|
|
|
// 忘记密码
|
|
// 忘记密码
|
|
|
forgotPwd() {
|
|
forgotPwd() {
|