From 0621ef1edec5e132034f5807a3a8053c45d57093 Mon Sep 17 00:00:00 2001 From: chenxing Date: Fri, 9 Oct 2026 14:53:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=A3=81=E7=BA=B8):=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E7=94=9F=E6=95=88=E5=A3=81=E7=BA=B8=E5=90=8E?= =?UTF-8?q?=E9=87=8D=E6=8B=89=E7=94=A8=E6=88=B7=E8=AE=BE=E7=BD=AE=E5=8D=B3?= =?UTF-8?q?=E6=97=B6=E5=9B=9E=E8=90=BD=E5=85=9C=E5=BA=95=EF=BC=88=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=20pane=20=E4=B8=8E=20Header=20=E6=A8=A1=E6=80=81?= =?UTF-8?q?=E6=A1=86=E4=B8=A4=E5=A4=84=E5=88=A0=E9=99=A4=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Header.vue | 5 +++++ src/views/Settings.vue | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/components/Header.vue b/src/components/Header.vue index e285c7c..81ea9fc 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -582,6 +582,11 @@ async function onClickWallpaper(url: string) { async function onWallpaperSelect(item: any) { await UserSettingApi.deleteWallById(item.id); await getUserWallpaperList(); + // 删除的是当前生效壁纸时重拉用户设置(后端兜底接管),桌面即时回落不白板 + if (store.getCurWallPaperUrl === item.url) { + const userSetting = await UserSettingApi.getUserSettings(); + if (userSetting) store.setCurUserSettingsInfo(userSetting); + } } async function loadLogoList() { diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 8e2976c..42207d6 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -1187,6 +1187,11 @@ async function onDeleteMyWallpaper(w: any) { async onOk() { await UserSettingApi.deleteWallById(w.id); await loadMyWallpaperList(); + // 删除的是当前生效壁纸时重拉用户设置(后端兜底接管),桌面即时回落不白板 + if (store.getCurWallPaperUrl === w.url) { + const userSetting = await UserSettingApi.getUserSettings(); + if (userSetting) store.setCurUserSettingsInfo(userSetting); + } }, }); }