mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-21 00:05:49 +00:00
[bug] fix login page errors
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user