chore: refactor the code of configuration; 🌟
This commit is contained in:
@@ -56,10 +56,10 @@ export default {
|
||||
computed: {
|
||||
...mapState('setting', ['theme', 'isMobile', 'layout', 'systemName', 'lang']),
|
||||
headerTheme () {
|
||||
if (this.layout == 'side' && this.theme == 'dark' && !this.isMobile) {
|
||||
if (this.layout == 'side' && this.theme.mode == 'dark' && !this.isMobile) {
|
||||
return 'light'
|
||||
}
|
||||
return this.theme
|
||||
return this.theme.mode
|
||||
},
|
||||
langAlias() {
|
||||
let lang = this.langList.find(item => item.key == this.lang)
|
||||
|
||||
Reference in New Issue
Block a user