陈婷婷
2026-04-02 e98c6cf658b332cd65676645301827ac03db832c
src/views/login.vue
@@ -203,10 +203,14 @@
            Cookies.remove("password")
            Cookies.remove('rememberMe')
          }
          this.$store.dispatch("Login", this.loginForm).then(res => {
          this.$store.dispatch("Login", {
            ...this.loginForm,
            loginPage: 'login'  // 添加登录页面来源标记
          }).then(res => {
            this.$router.push({ path: this.redirect || "/" }).catch(() => { })
          }).catch(() => {
            this.loading = false
            this.$message.error('账号或密码错误,请重新输入')
            if (this.captchaEnabled) {
              this.getCode()
            }