refactor: 代码重构优化(VueUse使用)

Former-commit-id: f33b8d352dd9e9b2a706c94cdd7afa150ac12931
This commit is contained in:
haoxr
2023-03-01 00:47:39 +08:00
parent 1e6e202ce6
commit 599624e944
16 changed files with 164 additions and 194 deletions

View File

@@ -1,12 +1,44 @@
// 系统设置
interface DefaultSettings {
/**
* 系统title
*/
title: string;
/**
* 是否显示设置
*/
showSettings: boolean;
/**
* 是否显示多标签导航
*/
tagsView: boolean;
/**
*是否固定头部
*/
fixedHeader: boolean;
/**
* 是否显示侧边栏Logo
*/
sidebarLogo: boolean;
errorLog: string;
/**
* 导航栏布局
*/
layout: string;
/**
* 主题模式
*/
theme: string;
/**
* 布局大小
*/
size: string;
/**
* 语言
*/
language: string;
}
const defaultSettings: DefaultSettings = {
@@ -15,9 +47,10 @@ const defaultSettings: DefaultSettings = {
tagsView: true,
fixedHeader: false,
sidebarLogo: true,
errorLog: 'production',
layout: 'left',
theme: 'dark'
theme: 'dark', // dark | light
size: 'default', // default |large |small
language: 'zh-cn' // zh-cn| en
};
export default defaultSettings;