|
@@ -58,7 +58,7 @@ export const useUserStore = defineStore({
|
|
|
},
|
|
|
actions: {
|
|
|
setToken(info: string | undefined) {
|
|
|
- this.token = info;
|
|
|
+ this.token = info ? info : ''; // for null or undefined value
|
|
|
setAuthCache(TOKEN_KEY, info);
|
|
|
},
|
|
|
setRoleList(roleList: RoleEnum[]) {
|