Commit 628c9f12 authored by Sendya's avatar Sendya

fix: theme key

parent 7954c750
......@@ -138,7 +138,7 @@ export default {
| Property | Description | Type | Default Value |
| ---- | ---- | ---- | ---- |
| navTheme | Theme | `dark` `light` `realDark` | `light` |
| theme | Theme | `dark` `light` `realDark` | `light` |
| layout | Sider Layout | `sidemenu` `topmenu` | `sidemenu` |
| primaryColor | Primary color (*development only) | `#1890ff` | |
......@@ -132,6 +132,6 @@ export default {
| Property | Description | Type | Default Value |
| ---- | ---- | ---- | ---- |
| navTheme | 主题 | `dark` `light` `realDark` | `light` |
| theme | 主题 | `dark` `light` `realDark` | `light` |
| layout | 布局模式 | `sidemenu` `topmenu` | `sidemenu` |
| primaryColor | 主色调 (*仅开发环境生效) | `#1890ff` | |
......@@ -133,7 +133,7 @@ const genCopySettingJson = (settings) =>
)
export const settings = {
navTheme: PropTypes.oneOf(['dark', 'light', 'realDark']),
theme: PropTypes.oneOf(['dark', 'light', 'realDark']),
primaryColor: PropTypes.string,
layout: PropTypes.oneOf(['sidemenu', 'topmenu']),
colorWeak: PropTypes.bool,
......@@ -166,7 +166,7 @@ const SettingDrawer = {
} = this
const {
navTheme = 'dark',
theme = 'dark',
primaryColor = 'daybreak',
layout = 'sidemenu',
fixedHeader = false,
......@@ -220,7 +220,7 @@ const SettingDrawer = {
</template>
<div class={`${baseClassName}-content`}>
<Body title={i18n('app.setting.pagestyle')}>
<BlockCheckbox list={themeList.themeList} value={navTheme} onChange={(val) => {
<BlockCheckbox list={themeList.themeList} value={theme} onChange={(val) => {
changeSetting('theme', val)
}} />
</Body>
......@@ -228,7 +228,7 @@ const SettingDrawer = {
<ThemeColor
title={i18n('app.setting.themecolor')}
value={primaryColor}
colors={themeList.colorList[navTheme === 'realDark' ? 'dark' : 'light']}
colors={themeList.colorList[theme === 'realDark' ? 'dark' : 'light']}
onChange={(color) => {
changeSetting('primaryColor', color, null)
}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment