浏览代码

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() {