renkang
2025-01-09 f68b6f735eb1b0f3702022d3a25510fcd21d1cf8
admin/src/views/login.vue
@@ -127,7 +127,6 @@
          uuid: this.captcha.uuid
        })
          .then((res) => {
            // window.location.href = process.env.VUE_APP_CONTEXT_PATH
            if (this.isRemPsd) {
              localStorage.setItem('username', this.username.trim())
              localStorage.setItem('password', this.password.trim())
@@ -138,7 +137,8 @@
              localStorage.removeItem('isRemPsd')
            }
            Cookies.set('dm_user_token', res)
            this.$router.push('index')
            window.location.href = process.env.VUE_APP_CONTEXT_PATH
            // this.$router.push('')
          })
          .catch(e => {
            this.refreshCaptcha()