Explorar o código

await secret status in login page

Hamidreza Ghavami hai 1 ano
pai
achega
456941323b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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() {