Ver Fonte

await secret status in login page

Hamidreza Ghavami há 1 ano atrás
pai
commit
456941323b
1 ficheiros alterados com 2 adições e 2 exclusões
  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() {