mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-24 21:40:22 +08:00
fix(projects): 完善侧边菜单展开逻辑
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { ThemeSettings } from '../interface';
|
||||
import { EnumAnimate, EnumMultiTabMode, EnumHorizontalMenuPosition } from '../enum';
|
||||
import type { ThemeSettings } from '@/interface';
|
||||
import { EnumAnimate, EnumMultiTabMode, EnumHorizontalMenuPosition } from '@/enum';
|
||||
import customThemeSettings from './theme.json';
|
||||
|
||||
const themeColorList = [
|
||||
'#409EFF',
|
||||
@@ -22,7 +23,7 @@ const themeColorList = [
|
||||
'#FC5404'
|
||||
];
|
||||
|
||||
const themeSettings: ThemeSettings = {
|
||||
const defaultThemeSettings: ThemeSettings = {
|
||||
darkMode: false,
|
||||
themeColor: themeColorList[0],
|
||||
themeColorList,
|
||||
@@ -83,4 +84,6 @@ const themeSettings: ThemeSettings = {
|
||||
showReload: true
|
||||
};
|
||||
|
||||
export default themeSettings;
|
||||
export const themeSettings = (customThemeSettings as ThemeSettings) || defaultThemeSettings;
|
||||
|
||||
export { defaultThemeSettings };
|
||||
|
||||
Reference in New Issue
Block a user