|
@ -51,6 +51,9 @@ export default { |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
localStorage.setItem("token", data.token); |
|
|
localStorage.setItem("token", data.token); |
|
|
this.$router.replace({ name: "index" }); |
|
|
this.$router.replace({ name: "index" }); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$router.replace({ name: "login-sso" }); |
|
|
|
|
|
this.getAuthUrl(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|