refactor: ♻️ 升级依赖、移除 pdf 预览和修复打包类型警告问题
This commit is contained in:
@@ -71,7 +71,7 @@ export const useSettingsStore = defineStore("setting", () => {
|
||||
// 监听主题变化,自动应用样式
|
||||
watch(
|
||||
[theme, themeColor],
|
||||
([newTheme, newThemeColor]) => {
|
||||
([newTheme, newThemeColor]: [ThemeMode, string]) => {
|
||||
toggleDarkMode(newTheme === ThemeMode.DARK);
|
||||
const colors = generateThemeColors(newThemeColor, newTheme);
|
||||
applyTheme(colors);
|
||||
|
||||
Reference in New Issue
Block a user