fix(projects): 修复项目配置拷贝功能

This commit is contained in:
Soybean
2022-02-07 23:21:30 +08:00
parent 2c9660fdbf
commit a7a269d6a6
5 changed files with 152 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
import { EnumThemeLayoutMode, EnumThemeTabMode, EnumThemeHorizontalMenuPosition, EnumThemeAnimateMode } from '@/enum';
import type { ThemeSetting } from '@/interface';
import jsonSetting from './theme.json';
const themeColorList = [
'#1890ff',
@@ -101,4 +102,4 @@ const defaultThemeSetting: ThemeSetting = {
}
};
export const themeSetting = defaultThemeSetting;
export const themeSetting = (jsonSetting as ThemeSetting) || defaultThemeSetting;