fix: 修复前端切换页面时logo跟标题闪烁的问题

This commit is contained in:
shaw
2025-12-19 22:33:36 +08:00
parent 14b155c66b
commit 22414326cc
5 changed files with 103 additions and 44 deletions

View File

@@ -499,6 +499,8 @@ async function saveSettings() {
saving.value = true;
try {
await adminAPI.settings.updateSettings(form);
// Refresh cached public settings so sidebar/header update immediately
await appStore.fetchPublicSettings(true);
appStore.showSuccess(t('admin.settings.settingsSaved'));
} catch (error: any) {
appStore.showError(t('admin.settings.failedToSave') + ': ' + (error.message || t('common.unknownError')));