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 | 45 ++++++++++++++++++++++++++++----------------- 1 files changed, 28 insertions(+), 17 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 81e9810..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,10 +158,24 @@ 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 '8094': + + this.loginForm.hospId = "pbkwyy"; + break; + case '8095': + this.loginForm.hospId = "jdczgzyy"; + break; + case '8096': + this.loginForm.hospId = "sqyy"; + break; + case '8097': + this.loginForm.hospId = "wbzxyy"; + break; case '9011': this.loginForm.hospId = "chkwyy"; break; @@ -169,20 +184,12 @@ this.loginForm.hospId = "xamjyy"; break; - - case '8094': - - this.loginForm.hospId = "pbkwyy"; - break; - case '8095': - this.loginForm.hospId = "sqyy"; - 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"; @@ -194,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) { @@ -288,6 +298,7 @@ } } this.$router.push({ path: this.redirect || "/" }).catch(() => { }); + location.reload(); } }).catch(() => { -- Gitblit v1.8.0