await secret status in login page

This commit is contained in:
Hamidreza Ghavami 2023-05-12 21:59:41 +04:30
parent a6a77688dc
commit 456941323b
No known key found for this signature in database
GPG key ID: 402C6797325182D9

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