浏览代码

tokenLogin.vue sso_token

jiawuxian 2 年之前
父节点
当前提交
9e473dfe3c
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 1 0
      src/views/question/list/dialog.vue
  2. 5 5
      src/views/tokenLogin.vue

+ 1 - 0
src/views/question/list/dialog.vue

@@ -249,6 +249,7 @@ export default {
         this.data.confirmDissent = r.data.flows.find((d) => d.executeStep == 1);
         this.data.confirm = r.data.flows.find((d) => d.executeStep == 2);
         this.data.reform = r.data.flows.find((d) => d.executeStep == 10);
+        debugger
         this.open = true;
       });
     },

+ 5 - 5
src/views/tokenLogin.vue

@@ -47,15 +47,15 @@ export default {
       this.loading = false;
       this.icon = "error";
       this.title = "错误";
-      this.errMessage = "缺少token";
+      this.errMessage = "缺少sso_token";
     } else {
-      let { token } = query;
-      if (!token) {
+      let { sso_token } = query;
+      if (!sso_token) {
         this.icon = "warning";
         this.loading = false;
-        this.errMessage = "缺少token";
+        this.errMessage = "缺少sso_token";
       } else {
-        this.$store.dispatch("TokenLogin",token)
+        this.$store.dispatch("TokenLogin",sso_token)
           .then((r) => {
             this.loading = false;
             this.$router.push({ path: "/home" }).catch(() => {});