changes
This commit is contained in:
@@ -51,7 +51,7 @@ export default {
|
||||
methods: {
|
||||
async confirm() {
|
||||
if (this.checkError()) return this.$snackbar("Mã phê duyệt gồm 4 số từ 0-9");
|
||||
let user = await this.$getdata("user", undefined, { filter: { id: this.$store.state.login.id } }, true);
|
||||
let user = await this.$getdata("user", { first: true, filter: { id: this.$store.state.login.id } });
|
||||
user.approval_code = this.code;
|
||||
await this.$updateapi("user", user);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user