From 79f117e8cfb90586753503582dfff2b999d6c436 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 01 四月 2024 10:11:41 +0800 Subject: [PATCH] 取消登录鉴权注释代码 --- Source/ProjectWeb/src/page/login/userlogin.vue | 60 ++++++++++++++++++++++++++++++------------------------------ 1 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Source/ProjectWeb/src/page/login/userlogin.vue b/Source/ProjectWeb/src/page/login/userlogin.vue index f753498..77a5801 100644 --- a/Source/ProjectWeb/src/page/login/userlogin.vue +++ b/Source/ProjectWeb/src/page/login/userlogin.vue @@ -165,36 +165,36 @@ done(); }, handleLogin() { - // this.$router.push({path: this.tagWel.value}); - // this.$refs.loginForm.validate(valid => { - // if (valid) { - // const loading = this.$loading({ - // lock: true, - // text: '鐧诲綍涓�,璇风◢鍚庛�傘�傘��', - // spinner: "el-icon-loading" - // }); - // this.$store.dispatch("LoginByUsername", this.loginForm).then(() => { - // if (this.website.switchMode) { - // const deptId = this.userInfo.dept_id; - // const roleId = this.userInfo.role_id; - // if (deptId.includes(",") || roleId.includes(",")) { - // this.loginForm.deptId = deptId; - // this.loginForm.roleId = roleId; - // this.userBox = true; - // this.$store.dispatch("LogOut").then(() => { - // loading.close(); - // }); - // return false; - // } - // } - // this.$router.push({path: this.tagWel.value}); - // loading.close(); - // }).catch(() => { - // loading.close(); - // - // }); - // } - // }); + this.$router.push({path: this.tagWel.value}); + this.$refs.loginForm.validate(valid => { + if (valid) { + const loading = this.$loading({ + lock: true, + text: '鐧诲綍涓�,璇风◢鍚庛�傘�傘��', + spinner: "el-icon-loading" + }); + this.$store.dispatch("LoginByUsername", this.loginForm).then(() => { + if (this.website.switchMode) { + const deptId = this.userInfo.dept_id; + const roleId = this.userInfo.role_id; + if (deptId.includes(",") || roleId.includes(",")) { + this.loginForm.deptId = deptId; + this.loginForm.roleId = roleId; + this.userBox = true; + this.$store.dispatch("LogOut").then(() => { + loading.close(); + }); + return false; + } + } + this.$router.push({path: this.tagWel.value}); + loading.close(); + }).catch(() => { + loading.close(); + + }); + } + }); }, getTenant() { let domain = getTopUrl(); -- Gitblit v1.9.3