mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-18 23:53:41 +08:00
refactor(projects): new storage system [新的本地数据存储系统]
This commit is contained in:
@@ -3,7 +3,7 @@ import { useOsTheme } from 'naive-ui';
|
||||
import type { GlobalThemeOverrides } from 'naive-ui';
|
||||
import { useElementSize } from '@vueuse/core';
|
||||
import { kebabCase } from 'lodash-es';
|
||||
import { setThemeColor } from '@/utils';
|
||||
import { localStg } from '@/utils';
|
||||
import { useThemeStore } from '../modules';
|
||||
|
||||
/** 订阅theme store */
|
||||
@@ -17,7 +17,7 @@ export default function subscribeThemeStore() {
|
||||
const stopThemeColor = watch(
|
||||
() => theme.themeColor,
|
||||
newValue => {
|
||||
setThemeColor(newValue);
|
||||
localStg.set('themeColor', newValue);
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
|
Reference in New Issue
Block a user