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