setTheme will not run on init if no theme is applied

This commit is contained in:
booploops 2022-02-04 02:49:56 -08:00
parent 893c7ea7c7
commit 0cf76d23aa

View file

@ -594,8 +594,8 @@ const app = new Vue({
}, },
async init() { async init() {
let self = this let self = this
if (this.cfg.visual.theme != "default.less" || this.cfg.visual.theme != "") { if (this.cfg.visual.theme != "default.less" && this.cfg.visual.theme != "") {
this.setTheme() this.setTheme(this.cfg.visual.theme)
} }
this.setLz(this.cfg.general.language) this.setLz(this.cfg.general.language)
this.setLzManual() this.setLzManual()
@ -855,6 +855,7 @@ const app = new Vue({
}, 500) }, 500)
}, },
setTheme(theme = "") { setTheme(theme = "") {
console.log(theme)
if (this.cfg.visual.theme == "") { if (this.cfg.visual.theme == "") {
this.cfg.visual.theme = "default.less" this.cfg.visual.theme = "default.less"
} }