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 || '未知错误');