await secret status in login page

This commit is contained in:
Hamidreza Ghavami 2023-05-12 21:59:41 +04:30
parent bb7157aa2d
commit 64f51b347d

View file

@ -120,10 +120,10 @@
secretEnable: false, secretEnable: false,
lang: "" lang: ""
}, },
created() { async created() {
this.updateBackground(); this.updateBackground();
this.lang = getLang(); this.lang = getLang();
this.secretEnable = this.getSecretStatus(); this.secretEnable = await this.getSecretStatus();
}, },
methods: { methods: {
async login() { async login() {