|
|
@@ -185,7 +185,6 @@ export default { |
|
|
|
if (!this.check()) { |
|
|
|
return |
|
|
|
} |
|
|
|
// if(!await this.checkverifycode())return |
|
|
|
let up = true |
|
|
|
|
|
|
|
var postData = { |
|
|
@@ -251,28 +250,6 @@ export default { |
|
|
|
}, 1000); |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 验证码校验 |
|
|
|
async checkverifycode() { |
|
|
|
return new Promise(async (resolve)=>{ |
|
|
|
if (!this.verifycode) { |
|
|
|
this.TOAST('请输入验证码'); |
|
|
|
resolve(false) |
|
|
|
return |
|
|
|
} |
|
|
|
this.LOADING('正在校验...') |
|
|
|
let codeResult = await this.HTTP_POST('learun/adms/usernologin/logincodeverify', { |
|
|
|
username: this.username, |
|
|
|
verifycode: this.verifycode, |
|
|
|
codeType: this.codeType |
|
|
|
}) |
|
|
|
this.HIDE_LOADING() |
|
|
|
if(!codeResult){ |
|
|
|
resolve(false) |
|
|
|
return |
|
|
|
} |
|
|
|
resolve(true) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 切换后台地址 |
|
|
|
changeApiRoot(newIndex) { |
|
|
|