|
@@ -86,6 +86,8 @@ export default {
|
|
this.isSubmit = false;
|
|
this.isSubmit = false;
|
|
if (!data) return;
|
|
if (!data) return;
|
|
|
|
|
|
|
|
+ data.account.roleCode = data.roles.map(item => item.roleCode).join();
|
|
|
|
+
|
|
this.$ls.set("token", data.token, this.GLOBAL.authTimeout);
|
|
this.$ls.set("token", data.token, this.GLOBAL.authTimeout);
|
|
this.$ls.set("schoolId", data.account.schoolId, this.GLOBAL.authTimeout);
|
|
this.$ls.set("schoolId", data.account.schoolId, this.GLOBAL.authTimeout);
|
|
this.$ls.set("user", data.account, this.GLOBAL.authTimeout);
|
|
this.$ls.set("user", data.account, this.GLOBAL.authTimeout);
|