setTheme will not run on init if no theme is applied
This commit is contained in:
parent
893c7ea7c7
commit
0cf76d23aa
1 changed files with 3 additions and 2 deletions
|
@ -594,8 +594,8 @@ const app = new Vue({
|
|||
},
|
||||
async init() {
|
||||
let self = this
|
||||
if (this.cfg.visual.theme != "default.less" || this.cfg.visual.theme != "") {
|
||||
this.setTheme()
|
||||
if (this.cfg.visual.theme != "default.less" && this.cfg.visual.theme != "") {
|
||||
this.setTheme(this.cfg.visual.theme)
|
||||
}
|
||||
this.setLz(this.cfg.general.language)
|
||||
this.setLzManual()
|
||||
|
@ -855,6 +855,7 @@ const app = new Vue({
|
|||
}, 500)
|
||||
},
|
||||
setTheme(theme = "") {
|
||||
console.log(theme)
|
||||
if (this.cfg.visual.theme == "") {
|
||||
this.cfg.visual.theme = "default.less"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue