1
wwl
2025-03-21 d3f9594061d53d59de8ea6f6b4199a9eed5922c8
1
1个文件已修改
36 ■■■■■ 已修改文件
src/views/login.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login.vue
@@ -157,18 +157,10 @@
        this.loginForm.hospId = this.$route.query.hospId
        Cookies.set("hospId", this.loginForm.hospId);
      } else if (env === 'production') {
              // 获取当前URL的端口号
      const port = window.location.port;
        // 获取当前URL的端口号
        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 +172,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的端口号
      const port = window.location.port;
        // 获取当前URL的端口号
        const port = window.location.port;
        switch (port) {
          case '9013':
            this.loginForm.hospId = "pbkwyy";
@@ -197,9 +200,12 @@
          case '9015':
            this.loginForm.hospId = "sqyy";
            break;
          case '9016':
            this.loginForm.hospId = "wbzxyy";
            break;
        }
        Cookies.set("hospId", this.loginForm.hospId);
      }
      }
      // 存储hospId到Cookie
      // 更新URL参数
      if (this.loginForm.hospId) {