Browse Source

await secret status in login page

Hamidreza Ghavami 1 year ago
parent
commit
456941323b
1 changed files with 2 additions and 2 deletions
  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() {