seimin 3 年之前
父节点
当前提交
43449c118a
共有 1 个文件被更改,包括 3 次插入16 次删除
  1. 3 16
      src/views/Login.vue

+ 3 - 16
src/views/Login.vue

@@ -60,11 +60,7 @@ export default {
60 60
               "login_requester",
61 61
               JSON.stringify(res.data.user.requester)
62 62
             );
63
-            if (this.isSSo) {
64
-              location.href = "http://" + location.host + "/user/#/main/indes";
65
-            } else {
66
-              this.$router.push({ path: "/main" });
67
-            }
63
+            this.$router.push({ path: "/main" });
68 64
           }
69 65
         }
70 66
       });
@@ -98,12 +94,7 @@ export default {
98 94
                 "login_requester",
99 95
                 JSON.stringify(res.data.user.requester)
100 96
               );
101
-              if (this.isSSo) {
102
-                location.href =
103
-                  "http://" + location.host + "/user/#/main/indes";
104
-              } else {
105
-                this.$router.push({ path: "/main" });
106
-              }
97
+              this.$router.push({ path: "/main" });
107 98
             }
108 99
           } else if (res.data.state == 501) {
109 100
             that
@@ -210,11 +201,7 @@ export default {
210 201
             "login_requester",
211 202
             JSON.stringify(res.data.data.requester)
212 203
           );
213
-          if (this.isSSo) {
214
-            location.href = "http://" + location.host + "/user/#/main/indes";
215
-          } else {
216
-            this.$router.push({ path: "/main" });
217
-          }
204
+          this.$router.push({ path: "/main" });
218 205
         } else {
219 206
           that
220 207
             .$createDialog({