WXL
2024-12-31 b1d81d016019a2c59e445dd6752c9134e184c8c4
src/views/login.vue
@@ -37,7 +37,7 @@
        </el-input>
      </el-form-item>
      <!-- 丽===================水 -->
      <!-- <el-form-item prop="guid">
      <el-form-item prop="guid">
        <el-select style="width: 100%;" v-model="loginForm.guid"  placeholder="请选择院区">
          <el-option
            v-for="item in options"
@@ -48,7 +48,7 @@
          </el-option>
          <i slot="prefix" class="el-icon-mobile"></i>
        </el-select>
      </el-form-item> -->
      </el-form-item>
      <!-- <el-form-item prop="code" v-if="captchaEnabled">
        <el-input
          v-model="loginForm.code"
@@ -126,7 +126,7 @@
        password: [
          { required: true, trigger: "blur", message: "请输入您的密码" },
        ],
        // guid: [{ required: true, trigger: "blur", message: "请选择院区" }],
        guid: [{ required: true, trigger: "blur", message: "请选择院区" }],
      },
      loading: false,
      // 验证码开关
@@ -195,7 +195,8 @@
          this.$store
            .dispatch("Login", this.loginForm)
            .then(() => {
              this.$router.push({ path: this.redirect || "/" }).catch(() => {});
              // this.$router.push({ path: this.redirect || "/" }).catch(() => {});
              this.$router.push({ path:"/patient/patient" }).catch(() => {});
            })
            .catch(() => {
              this.loading = false;