From e701c0189210fce7a061b6273d96d6a85cd3a873 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期二, 12 三月 2024 16:00:03 +0800
Subject: [PATCH] 取消登录鉴权 取消路由重定向 创建动态表格组件 配置组件路由 (访问页面直接通过路由访问)

---
 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