[bug] fix login page errors

This commit is contained in:
Alireza Ahmadi
2023-11-13 21:40:11 +01:00
parent 5e07e32388
commit 2ca3a05cca

View File

@@ -179,7 +179,6 @@
lang: ""
},
created() {
this.updateBackground();
this.lang = getLang();
},
methods: {
@@ -190,15 +189,7 @@
if (msg.success) {
location.href = basePath + 'xui/';
}
},
updateBackground() {
document.querySelector('#app').style.background = colors[this.themeSwitcher.currentTheme].bg;
},
},
watch: {
'themeSwitcher.isDarkTheme'(newVal, oldVal) {
this.updateBackground();
},
}
},
});
</script>