Sfoglia il codice sorgente

await secret status in login page

Hamidreza Ghavami 1 anno fa
parent
commit
456941323b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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() {