fix user profile update

This commit is contained in:
Timi
2026-08-07 18:20:29 +08:00
parent 82e717e3c6
commit 16fa5fdd36
10 changed files with 386 additions and 73 deletions
+4 -1
View File
@@ -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> {