refactor: preference manager and export (#7068)

* fix: preferences drawer outline z-index

* refactor: preferencesManager and exports
This commit is contained in:
ppxb
2026-01-06 12:42:32 +08:00
committed by GitHub
parent 6f02181024
commit 24d20ca9ee
3 changed files with 112 additions and 129 deletions

View File

@@ -19,7 +19,7 @@ import { computed, ref } from 'vue';
import { Copy, Pin, PinOff, RotateCw } from '@vben/icons';
import { $t, loadLocaleMessages } from '@vben/locales';
import {
clearPreferencesCache,
clearCache,
preferences,
resetPreferences,
usePreferences,
@@ -228,7 +228,7 @@ async function handleCopy() {
async function handleClearCache() {
resetPreferences();
clearPreferencesCache();
clearCache();
emit('clearPreferencesAndLogout');
}