fix(projects): 完善侧边菜单展开逻辑

This commit is contained in:
Soybean
2021-10-12 16:22:07 +08:00
parent 73505d914f
commit b5f05128ab
10 changed files with 219 additions and 13 deletions

View File

@@ -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 };