mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-14 02:02:29 +08:00
Fixes bug
This commit is contained in:
@@ -226,7 +226,7 @@
|
||||
|
||||
function togNavTheme(theme) {
|
||||
settingStore.navTheme = theme;
|
||||
if (settingStore.navMode === 'horizontal' && theme === 'light') {
|
||||
if (settingStore.navMode === 'horizontal' && ['light'].includes(theme)) {
|
||||
settingStore.navTheme = 'dark';
|
||||
}
|
||||
}
|
||||
@@ -237,11 +237,11 @@
|
||||
|
||||
function togNavMode(mode) {
|
||||
settingStore.navMode = mode;
|
||||
if (mode === 'horizontal') {
|
||||
settingStore.setNavTheme('light');
|
||||
} else {
|
||||
settingStore.setNavTheme('dark');
|
||||
}
|
||||
// if (mode === 'header-dark') {
|
||||
// settingStore.setNavTheme('dark');
|
||||
// } else {
|
||||
// settingStore.setNavTheme('light');
|
||||
// }
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user