소스 검색

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