From aadc91f6723a6eafac893bd5a2dd7d021a5e58d5 Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期五, 09 五月 2025 14:44:32 +0800
Subject: [PATCH] zongjian

---
 src/views/login.vue |   42 +++++++++++++++++++++++++-----------------
 1 files changed, 25 insertions(+), 17 deletions(-)

diff --git a/src/views/login.vue b/src/views/login.vue
index d3fb315..80a2305 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -58,13 +58,14 @@
 
     <!--  搴曢儴  -->
     <div class="el-login-footer">
-      <span>Copyright 漏 2023-2024 All Rights Reserved.</span>
+      <span>Copyright 漏 2024-2025 All Rights Reserved.</span>
       <!-- <span>Copyright 漏 2022-2023榫欑編缃戠粶 All Rights Reserved.</span> -->
     </div>
   </div>
 </template>
 
-<script>
+<script> 
+
 import { getCodeImg, getconfigKey } from "@/api/login";
 import Cookies from "js-cookie";
 import { encrypt, decrypt } from '@/utils/jsencrypt'
@@ -157,18 +158,10 @@
         this.loginForm.hospId = this.$route.query.hospId
         Cookies.set("hospId", this.loginForm.hospId);
       } else if (env === 'production') {
-              // 鑾峰彇褰撳墠URL鐨勭鍙e彿
-      const port = window.location.port;
-    
+        // 鑾峰彇褰撳墠URL鐨勭鍙e彿
+        const port = window.location.port;
+
         switch (port) {
-          case '9011':
-            this.loginForm.hospId = "chkwyy";
-            break;
-
-          case '9012':
-
-            this.loginForm.hospId = "xamjyy";
-            break;
 
           case '8094':
 
@@ -180,12 +173,23 @@
           case '8096':
             this.loginForm.hospId = "sqyy";
             break;
+          case '8097':
+            this.loginForm.hospId = "wbzxyy";
+            break;
+          case '9011':
+            this.loginForm.hospId = "chkwyy";
+            break;
+
+          case '9012':
+
+            this.loginForm.hospId = "xamjyy";
+            break;
         }
         Cookies.set("hospId", this.loginForm.hospId);
       } else if (env === 'staging') {
-              // 鑾峰彇褰撳墠URL鐨勭鍙e彿
-      const port = window.location.port;
-    
+        // 鑾峰彇褰撳墠URL鐨勭鍙e彿
+        const port = window.location.port;
+
         switch (port) {
           case '9013':
             this.loginForm.hospId = "pbkwyy";
@@ -197,9 +201,12 @@
           case '9015':
             this.loginForm.hospId = "sqyy";
             break;
+          case '9016':
+            this.loginForm.hospId = "wbzxyy";
+            break;
         }
         Cookies.set("hospId", this.loginForm.hospId);
-      } 
+      }
       // 瀛樺偍hospId鍒癈ookie
       // 鏇存柊URL鍙傛暟
       if (this.loginForm.hospId) {
@@ -291,6 +298,7 @@
                 }
               }
               this.$router.push({ path: this.redirect || "/" }).catch(() => { });
+              location.reload();
             }
 
           }).catch(() => {

--
Gitblit v1.8.0