Răsfoiți Sursa

await secret status in login page

Hamidreza Ghavami 1 an în urmă
părinte
comite
456941323b
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      web/html/login.html

+ 2 - 2
web/html/login.html

@@ -120,10 +120,10 @@
             secretEnable: false,
             lang: ""
         },
-        created() {
+        async created() {
             this.updateBackground();
             this.lang = getLang();
-            this.secretEnable = this.getSecretStatus();
+            this.secretEnable = await this.getSecretStatus();
         },
         methods: {
             async login() {