From 00c38a06a71962d37a23c8fcd35dcef979df57a5 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期五, 15 三月 2024 16:05:34 +0800 Subject: [PATCH] UI上下文展示引擎 --- Source/ProjectWeb/src/page/login/userlogin.vue | 59 ++++++++++++++++++++++++++++++----------------------------- 1 files changed, 30 insertions(+), 29 deletions(-) diff --git a/Source/ProjectWeb/src/page/login/userlogin.vue b/Source/ProjectWeb/src/page/login/userlogin.vue index 5ccde5a..f1cbbd9 100644 --- a/Source/ProjectWeb/src/page/login/userlogin.vue +++ b/Source/ProjectWeb/src/page/login/userlogin.vue @@ -165,35 +165,36 @@ done(); }, handleLogin() { - 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