🔧 改进全局主题设置提示信息
当管理员设置了个人偏好时,提示"你设置了个人偏好,不受全局影响" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -369,7 +369,12 @@ createApp({
|
|||||||
} else {
|
} else {
|
||||||
console.log('[主题] 用户有个人偏好,不更改当前显示主题:', this.userThemePreference);
|
console.log('[主题] 用户有个人偏好,不更改当前显示主题:', this.userThemePreference);
|
||||||
}
|
}
|
||||||
this.showToast('success', '全局主题已更新', theme === 'dark' ? '默认暗色主题' : '默认亮色主题');
|
// 提示信息
|
||||||
|
let toastMsg = theme === 'dark' ? '默认暗色主题' : '默认亮色主题';
|
||||||
|
if (this.userThemePreference !== null) {
|
||||||
|
toastMsg += '(你设置了个人偏好,不受全局影响)';
|
||||||
|
}
|
||||||
|
this.showToast('success', '全局主题已更新', toastMsg);
|
||||||
} else {
|
} else {
|
||||||
console.error('[主题] API返回失败:', res.data);
|
console.error('[主题] API返回失败:', res.data);
|
||||||
this.showToast('error', '设置失败', res.data.message || '未知错误');
|
this.showToast('error', '设置失败', res.data.message || '未知错误');
|
||||||
|
|||||||
Reference in New Issue
Block a user