feat: add global night mode; 🌟
新增:全局夜晚模式;
This commit is contained in:
@@ -73,6 +73,9 @@ export default {
|
||||
keys.push(item.path)
|
||||
})
|
||||
return keys
|
||||
},
|
||||
menuTheme() {
|
||||
return this.theme == 'light' ? this.theme : 'dark'
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
@@ -212,7 +215,7 @@ export default {
|
||||
Menu,
|
||||
{
|
||||
props: {
|
||||
theme: this.$props.theme,
|
||||
theme: this.menuTheme,
|
||||
mode: this.$props.mode,
|
||||
openKeys: this.openKeys,
|
||||
selectedKeys: this.selectedKeys
|
||||
|
||||
Reference in New Issue
Block a user