wjx 3 周之前
父节点
当前提交
d90e3bc51a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/login.vue

+ 1 - 1
src/views/login.vue

@@ -139,7 +139,7 @@ export default {
         if (code) {
         if (code) {
           this.dingdingLogin(code, state)
           this.dingdingLogin(code, state)
         } else if (token) {
         } else if (token) {
-          this.$store.dispatch("SetToken", encodeURIComponent(token)).then(res => {
+          this.$store.dispatch("SetToken", decodeURIComponent(token)).then(res => {
             this.$router.push({ path: `/login?redirect=${this.redirect || '/index'}` });
             this.$router.push({ path: `/login?redirect=${this.redirect || '/index'}` });
           })
           })
         }
         }