mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-04-23 19:38:38 +00:00
fix: 修复前端切换页面时logo跟标题闪烁的问题
This commit is contained in:
@@ -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')));
|
||||
|
||||
Reference in New Issue
Block a user