Преглед изворни кода

await secret status in login page

Hamidreza Ghavami пре 1 година
родитељ
комит
456941323b
1 измењених фајлова са 2 додато и 2 уклоњено
  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() {