2023-03-13 15:19:50 +08:00
|
|
|
interface ISettings {
|
|
|
|
title: string;
|
|
|
|
showSettings: boolean;
|
|
|
|
tagsView: boolean;
|
|
|
|
fixedHeader: boolean;
|
|
|
|
sidebarLogo: boolean;
|
|
|
|
errorLog: string | string[];
|
|
|
|
}
|
|
|
|
|
|
|
|
const settings:ISettings = {
|
2022-09-15 14:21:11 +08:00
|
|
|
title: 'Vue3 ElementPlus Admin',
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {boolean} true | false
|
|
|
|
* @description Whether show the settings right-panel
|
|
|
|
*/
|
|
|
|
showSettings: true,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {boolean} true | false
|
|
|
|
* @description Whether need tagsView
|
|
|
|
*/
|
|
|
|
tagsView: true,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {boolean} true | false
|
|
|
|
* @description Whether fix the header
|
|
|
|
*/
|
|
|
|
fixedHeader: false,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {boolean} true | false
|
|
|
|
* @description Whether show the logo in sidebar
|
|
|
|
*/
|
|
|
|
sidebarLogo: false,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {string | array} 'production' | ['production', 'development']
|
|
|
|
* @description Need show err logs component.
|
|
|
|
* The default is only used in the production env
|
|
|
|
* If you want to also use it in dev, you can pass ['production', 'development']
|
|
|
|
*/
|
2023-03-13 15:19:50 +08:00
|
|
|
errorLog: ['production', 'development'] // ['production', 'development'], 'production'
|
2022-09-15 14:21:11 +08:00
|
|
|
};
|
2023-03-13 15:19:50 +08:00
|
|
|
|
|
|
|
export default settings;
|