From 64268135aab81202452786a6efd48308f2210ebd Mon Sep 17 00:00:00 2001 From: yuyx <237899745@qq.com> Date: Thu, 27 Nov 2025 23:49:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=E6=94=B9=E8=BF=9B=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E4=B8=BB=E9=A2=98=E8=AE=BE=E7=BD=AE=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当管理员设置了个人偏好时,提示"你设置了个人偏好,不受全局影响" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- frontend/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/app.js b/frontend/app.js index 858318f..47ec0c2 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -369,7 +369,12 @@ createApp({ } else { console.log('[主题] 用户有个人偏好,不更改当前显示主题:', this.userThemePreference); } - this.showToast('success', '全局主题已更新', theme === 'dark' ? '默认暗色主题' : '默认亮色主题'); + // 提示信息 + let toastMsg = theme === 'dark' ? '默认暗色主题' : '默认亮色主题'; + if (this.userThemePreference !== null) { + toastMsg += '(你设置了个人偏好,不受全局影响)'; + } + this.showToast('success', '全局主题已更新', toastMsg); } else { console.error('[主题] API返回失败:', res.data); this.showToast('error', '设置失败', res.data.message || '未知错误');