From 6ee02971317445650b2938f5824518fec560e024 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 27 八月 2025 09:28:24 +0800
Subject: [PATCH] 测试完成

---
 src/views/login.vue |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/views/login.vue b/src/views/login.vue
index 6ada6f7..ef1bf54 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -112,11 +112,12 @@
         password: "",
         rememberMe: false,
         code: "",
-        orgid:'47255004333112711A1001',
+        orgid:'H41010500003',
       },
       options: [
-        { value: "47255004333112711A1001", label: "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�" },
-        { value: "47231022633110211A2101", label: "涓芥按甯備腑鍖婚櫌" },
+{ value: "H41010500003", label: "娌冲崡涓尰鑽ぇ瀛︾涓�闄勫睘鍖婚櫌" },
+    { value: "H41082200269", label: "鍗氱埍鍘夸汉姘戝尰闄�" },
+    { value: "H41078202417", label: "杈夊幙甯備腑鍖婚櫌" }
        ],
       loginRules: {
         username: [
@@ -193,9 +194,12 @@
           // this.loginForm.orgid = '1',
           this.$store
             .dispatch("Login", this.loginForm)
-            .then(() => {
-              // this.$router.push({ path: this.redirect || "/" }).catch(() => {});
-              this.$router.push({ path:"/followvisit/discharge" }).catch(() => {});
+            .then((res) => {
+              if (this.loginForm.username=='admin') {
+              this.$router.push({ path:"/index" }).catch(() => {});
+              }else{
+                this.$router.push({ path:"/followvisit/discharge" }).catch(() => {});
+              }
             })
             .catch(() => {
               this.loading = false;

--
Gitblit v1.9.3