sc
This commit is contained in:
@@ -100,7 +100,7 @@ export const useUserStore = defineStore('user', () => {
|
|||||||
// 退出系统
|
// 退出系统
|
||||||
const logOutAction = () => {
|
const logOutAction = () => {
|
||||||
const instance_id = storage.get(constant.instanceId);
|
const instance_id = storage.get(constant.instanceId);
|
||||||
const tenant_id = storage.get(constant.tenant_id);
|
const tenant_id = storage.get(constant.tenantId);
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
logout(token.value)
|
logout(token.value)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@@ -114,7 +114,7 @@ export const useUserStore = defineStore('user', () => {
|
|||||||
storage.set(constant.instanceId, instance_id);
|
storage.set(constant.instanceId, instance_id);
|
||||||
}
|
}
|
||||||
if (!isEmpty(tenant_id)) {
|
if (!isEmpty(tenant_id)) {
|
||||||
storage.set(constant.tenant_id, tenant_id);
|
storage.set(constant.tenantId, tenant_id);
|
||||||
}
|
}
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user