From c0b8a21206c58a0161a179c15dfb73e4a8bbf55d Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期一, 19 五月 2025 17:36:17 +0800
Subject: [PATCH] 1

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

diff --git a/src/views/login.vue b/src/views/login.vue
index 3a6ee04..c477418 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':
 
@@ -177,12 +170,21 @@
           case '8095':
             this.loginForm.hospId = "jdczgzyy";
             break;
+          case '8096':
+            this.loginForm.hospId = "sqyy";
+            break;
+          case '8097':
+            this.loginForm.hospId = "wbzxyy";
+            break;
+             case '8098':
+            this.loginForm.hospId = "bjxjyy";
+            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";
@@ -191,9 +193,18 @@
           case '9014':
             this.loginForm.hospId = "jdczgzyy";
             break;
+          case '9015':
+            this.loginForm.hospId = "sqyy";
+            break;
+          case '9016':
+            this.loginForm.hospId = "wbzxyy";
+            break;
+              case '9017':
+            this.loginForm.hospId = "bjxjyy";
+            break;
         }
         Cookies.set("hospId", this.loginForm.hospId);
-      } 
+      }
       // 瀛樺偍hospId鍒癈ookie
       // 鏇存柊URL鍙傛暟
       if (this.loginForm.hospId) {
@@ -285,6 +296,7 @@
                 }
               }
               this.$router.push({ path: this.redirect || "/" }).catch(() => { });
+              location.reload();
             }
 
           }).catch(() => {

--
Gitblit v1.8.0