fix: 修复点击退出图标确认后不能退出 && 图标排序等数组字段需顺序敏感比较 (#8179)

* chore: 调整 sortablejs 的位置,只在用到的模块引入

* fix: non-null assertion lint error

* fix: 修复点击退出图标确认后不能退出

* fix: 图标排序等数组字段需顺序敏感比较

* feat: 配置中增加 refresh 并统一位置
This commit is contained in:
xingyu
2026-07-22 17:44:10 +08:00
committed by GitHub
parent 899910547f
commit 6b6708bcf2
12 changed files with 663 additions and 595 deletions

View File

@@ -161,6 +161,7 @@ const defaultPreferences: Preferences = {
'languageToggle',
'timezone',
'fullscreen',
'refresh',
'notification',
'lockScreenBtn',
'logoutBtn',

View File

@@ -1,6 +1,6 @@
import { computed } from 'vue';
import { diff } from '@vben-core/shared/utils';
import { diff, diffStrict } from '@vben-core/shared/utils';
import { preferencesManager } from './preferences';
import { isDarkTheme } from './update-css-variables';
@@ -16,9 +16,10 @@ function usePreferences() {
);
/**
* @zh_CN 计算偏好设置的变化
* @zh_CN 使用 diffStrict图标排序等数组字段需顺序敏感比较
*/
const diffPreference = computed(() => {
return diff(initialPreferences, preferences);
return diffStrict(initialPreferences, preferences);
});
const diffCustomPreference = computed(() => {