fix user profile update
This commit is contained in:
@@ -15,7 +15,10 @@ export const useCurrentStoreStore = defineStore("currentStore", () => {
|
||||
let loginStoreRequest: Promise<Store | undefined> | undefined;
|
||||
let loginStoreRequestUserId = "";
|
||||
|
||||
const currentStore = computed(() => storeList.value.find(item => item.id === currentStoreId.value));
|
||||
const currentStore = computed(() => (
|
||||
storeList.value.find(item => item.id === currentStoreId.value)
|
||||
|| (loginStore.value?.id === currentStoreId.value ? loginStore.value : undefined)
|
||||
));
|
||||
const currentStoreName = computed(() => currentStore.value?.name || "默认门店");
|
||||
|
||||
async function loadStoreList(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user