fix(配置): 部署报错修复

This commit is contained in:
Zhunianya
2026-04-02 14:41:11 +08:00
parent 08aeb1593c
commit 09d62b413f
5 changed files with 106 additions and 120 deletions

View File

@@ -1,49 +1,50 @@
import Cookies from 'js-cookie';
module.exports = {
/**
* 侧边栏主题 深色主题theme-dark,浅色主题theme-light
*/
sideTheme: 'theme-dark',
/**
* 是否系统布局配置
*/
showSettings: false,
/**
* 是否显示顶部导航
*/
topNav: false,
/**
* 是否显示 tagsView
*/
tagsView: false,
/**
* 是否固定头部
*/
fixedHeader: false,
/**
* 是否显示logo
*/
sidebarLogo: true,
/**
* 是否显示动态标题
*/
dynamicTitle: 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']
*/
errorLog: 'production',
export default {
/**
* 默认语言 先從cookies拿,沒有從瀏覽器語言拿,最後用'zh-CN'
*/
language: Cookies.get('language') || navigator.language || navigator.browserLanguage || 'zh-CN',
}
* 侧边栏主题 深色主题theme-dark,浅色主题theme-light
*/
sideTheme: 'theme-dark',
/**
* 是否系统布局配置
*/
showSettings: false,
/**
* 是否显示顶部导航
*/
topNav: false,
/**
* 是否显示 tagsView
*/
tagsView: false,
/**
* 是否固定头部
*/
fixedHeader: false,
/**
* 是否显示logo
*/
sidebarLogo: true,
/**
* 是否显示动态标题
*/
dynamicTitle: 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']
*/
errorLog: 'production',
/**
* 默认语言 先從cookies拿,沒有從
*/
language: Cookies.get('language') || navigator.language || navigator.browserLanguage || 'zh-CN',
};