From f3b1433e92d4ebd9ca75f252a950a768d3966031 Mon Sep 17 00:00:00 2001 From: Baobhan Sith <80159437+Heavrnl@users.noreply.github.com> Date: Thu, 8 May 2025 16:44:56 +0800 Subject: [PATCH] Update auth.store.ts --- packages/frontend/src/stores/auth.store.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/frontend/src/stores/auth.store.ts b/packages/frontend/src/stores/auth.store.ts index 557a207..1d69dc5 100644 --- a/packages/frontend/src/stores/auth.store.ts +++ b/packages/frontend/src/stores/auth.store.ts @@ -324,12 +324,7 @@ export const useAuthStore = defineStore('auth', { // NEW: 获取公共 CAPTCHA 配置 (修改为从 /settings/captcha 获取) async fetchCaptchaConfig() { - console.log('[AuthStore] fetchCaptchaConfig called. Current publicCaptchaConfig:', JSON.stringify(this.publicCaptchaConfig)); // 添加日志 - // Avoid refetching if already loaded - if (this.publicCaptchaConfig !== null) { - console.log('[AuthStore] publicCaptchaConfig is not null, returning early.'); // 添加日志 - return; - } + console.log('[AuthStore] fetchCaptchaConfig called. Forcing refetch.'); // 更新日志,表明强制刷新 // Don't set isLoading for this, it should be quick background fetch try {