changes
This commit is contained in:
@@ -34,7 +34,10 @@ export default {
|
||||
if (!this.approvalcode && this.$store.state.login.approval_code)
|
||||
this.approvalcode = this.$store.state.login.approval_code;
|
||||
if (!this.approvalcode) {
|
||||
let user = await this.$getdata("user", { id: this.$store.state.login.id }, undefined, true);
|
||||
const user = await this.$getdata("user", {
|
||||
first: true,
|
||||
filter: { id: this.$store.state.login.id },
|
||||
});
|
||||
this.approvalcode = user.approval_code;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user