From 11204442dd7796d88793fe5b2e584eccae6fa146 Mon Sep 17 00:00:00 2001 From: jiangweiguo <1578967617@qq.com> Date: Wed, 10 Apr 2024 13:11:55 +0800 Subject: [PATCH] 1 --- src/views/login/index.vue | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index a4e8f5a..6c69319 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -65,7 +65,8 @@ 企业微信登录 @@ -113,8 +114,8 @@ export default { ...mapGetters(['devSystemList', 'devUserList']), }, created() { - // 是否禁止账号密码登录 - isProhibited().then((res) => { + // 是否禁止网页登录 + /* isProhibited().then((res) => { if (res.data) { console.log(res.data, 'isProhibited') if (/wxwork/i.test(navigator.userAgent)) { @@ -128,7 +129,7 @@ export default { return } } - }) + }) */ // 租户开关 // this.tenantEnable = getTenantEnable(); // if (this.tenantEnable) { @@ -202,13 +203,6 @@ export default { }).then((res) => { // 构造重定向的 URL window.location.href = res.data - /* this.$nextTick(() => { - Toast.loading({ - duration: 3, // 持续展示 toast - forbidClick: true, - message: res.data + , - }) - }) */ }) }, // 跳转登录 @@ -290,6 +284,7 @@ export default { } window.localStorage.setItem('loginInfo', JSON.stringify(obj)) } + this.firstLogin = false // 首次企微登录绑定账号 if (window.location.href.includes('code')) { userBind({ code: this.code, state: this.state, type: 40 }) @@ -326,4 +321,7 @@ export default { .oo { text-align: left; } +.mtop { + margin-top: 15vh; +}