From d8f3ae34241aaa5b2b2ebe8333f5a8a2c28dddf5 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Tue, 15 Jul 2025 09:03:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login1.vue | 66 +++++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/src/views/login1.vue b/src/views/login1.vue index 458c4391..93112164 100644 --- a/src/views/login1.vue +++ b/src/views/login1.vue @@ -364,15 +364,16 @@ export default { }) }, IsAdmin() { - this.loginForm.loginMethod = this.loginMethod - this.$store.dispatch('IsAdmin', this.loginForm).then(res => { - if (res.data) { - this.isAdmin = res.data - this.$message.success('检测到您是超级管理账号,需进行手机检验') - } else { - this.handleLogin() - } - }) + this.handleLogin() + // this.loginForm.loginMethod = this.loginMethod + // this.$store.dispatch('IsAdmin', this.loginForm).then(res => { + // if (res.data) { + // this.isAdmin = res.data + // this.$message.success('检测到您是超级管理账号,需进行手机检验') + // } else { + // this.handleLogin() + // } + // }) }, isLogin() { this.$refs.loginForm.validate(valid => { @@ -380,29 +381,30 @@ export default { this.loading = true let that = this this.loginForm.loginMethod = this.loginMethod - this.$store - .dispatch('IsLogin', this.loginForm) - .then(res => { - if (res.data) { - this.$modal - .confirm('账号已在其他地方登录是否继续登录!!!!') - .then(function () { - return that.handleLogin() - }) - .then(() => { - this.loading = false - }) - .catch(() => { - this.loading = false - }) - } else { - that.handleLogin() - } - }) - .catch(() => { - this.loading = false - if (this.captchaEnabled) this.getCode() - }) + + // this.$store + // .dispatch('IsLogin', this.loginForm) + // .then(res => { + // if (res.data) { + // this.$modal + // .confirm('账号已在其他地方登录是否继续登录!!!!') + // .then(function () { + // return that.handleLogin() + // }) + // .then(() => { + // this.loading = false + // }) + // .catch(() => { + // this.loading = false + // }) + // } else { + // that.handleLogin() + // } + // }) + // .catch(() => { + // this.loading = false + // if (this.captchaEnabled) this.getCode() + // }) } }) },