From 8f1b054bb1c5a7b1873afc707b09ca40b13d3005 Mon Sep 17 00:00:00 2001 From: vben Date: Sun, 2 Jun 2024 10:20:15 +0800 Subject: [PATCH] fix: some bugs --- apps/antd-view/src/preferences.ts | 3 ++- .../business/common-ui/src/theme-toggle/theme-toggle.vue | 5 ++--- packages/locales/package.json | 1 - pnpm-lock.yaml | 3 --- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/antd-view/src/preferences.ts b/apps/antd-view/src/preferences.ts index 415ba5b9..6fbc764b 100644 --- a/apps/antd-view/src/preferences.ts +++ b/apps/antd-view/src/preferences.ts @@ -1,4 +1,5 @@ -import type { DeepPartial, Preferences } from '@vben/types'; +import type { DeepPartial } from '@vben/types'; +import type { Preferences } from '@vben-core/preferences'; /** * @description 项目配置文件 diff --git a/packages/business/common-ui/src/theme-toggle/theme-toggle.vue b/packages/business/common-ui/src/theme-toggle/theme-toggle.vue index 8b761228..ce84d0bf 100644 --- a/packages/business/common-ui/src/theme-toggle/theme-toggle.vue +++ b/packages/business/common-ui/src/theme-toggle/theme-toggle.vue @@ -5,7 +5,7 @@ import { MdiMoonAndStars, } from '@vben-core/iconify'; import { - preferences, + flatPreferences, updatePreferences, usePreferences, } from '@vben-core/preferences'; @@ -64,11 +64,10 @@ const PRESETS = [ />