From 2ca3a05cca1a397aa8a11415631c3a6e7400b594 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Mon, 13 Nov 2023 21:40:11 +0100 Subject: [PATCH] [bug] fix login page errors --- web/html/login.html | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/web/html/login.html b/web/html/login.html index fd4b8837..f4933528 100644 --- a/web/html/login.html +++ b/web/html/login.html @@ -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(); - }, + } }, });