|
|
@@ -398,7 +398,7 @@ import SIdentify from '@/components/VCode.vue'
|
|
|
window.localStorage.setItem('loginMode', this.loginMode)
|
|
|
}
|
|
|
if (this.loginMode === 1) {
|
|
|
- this.loginclient()
|
|
|
+ this.login()
|
|
|
} else {
|
|
|
this.$refs.user.validate((valid) => {
|
|
|
if (valid) {
|
|
|
@@ -417,10 +417,10 @@ import SIdentify from '@/components/VCode.vue'
|
|
|
.then(res => {
|
|
|
if (res.data.items === 1) {
|
|
|
this.flag = 1
|
|
|
- this.loginclient()
|
|
|
+ this.login()
|
|
|
} else if (res.data.items === 2) {
|
|
|
this.flag = 2
|
|
|
- this.loginclient()
|
|
|
+ this.login()
|
|
|
} else if (res.data.items === 3) {
|
|
|
this.$message.warning('您无权限登陆本系统')
|
|
|
} else {
|