seimin 3 years ago
parent
commit
43449c118a
1 changed files with 3 additions and 16 deletions
  1. 3 16
      src/views/Login.vue

+ 3 - 16
src/views/Login.vue

@@ -60,11 +60,7 @@ export default {
60
               "login_requester",
60
               "login_requester",
61
               JSON.stringify(res.data.user.requester)
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
                 "login_requester",
94
                 "login_requester",
99
                 JSON.stringify(res.data.user.requester)
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
           } else if (res.data.state == 501) {
99
           } else if (res.data.state == 501) {
109
             that
100
             that
@@ -210,11 +201,7 @@ export default {
210
             "login_requester",
201
             "login_requester",
211
             JSON.stringify(res.data.data.requester)
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
         } else {
205
         } else {
219
           that
206
           that
220
             .$createDialog({
207
             .$createDialog({