From 505aeb76dfa1cb677bbc75ad618f0a9a12e9ed57 Mon Sep 17 00:00:00 2001 From: Litrix Date: Thu, 26 Dec 2024 12:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20test:=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/user.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/stores/user.ts b/src/stores/user.ts index bcaa52e..10e04bc 100644 --- a/src/stores/user.ts +++ b/src/stores/user.ts @@ -40,19 +40,19 @@ export const useUserStore = defineStore('user', () => { !clubPermissionId || ensureArray(clubPermissionId).every((id) => clubPermissions.value.has(id)); const initializing = ref(false); const logined = computed(() => (userInfo.value && userInfo.value.id !== -1) ?? false); - watch( - userInfo, - (info, old) => { - router.push({ - path: - info && (info.id !== -1 || !old || old.id === -1) - ? router.currentRoute.value.fullPath - : '/', - force: true, - }); - }, - { flush: 'sync' }, - ); + // watch( + // userInfo, + // (info, old) => { + // router.push({ + // path: + // info && (info.id !== -1 || !old || old.id === -1) + // ? router.currentRoute.value.fullPath + // : '/', + // force: true, + // }); + // }, + // { flush: 'sync' }, + // ); const isSelf = (id: string | number) => userInfo.value?.id === Number(id); async function updateSelfUserInfo(): Promise { initializing.value = true;