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;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -43,7 +43,7 @@ export default {
|
||||
let id = this.vbind.row.id;
|
||||
let result;
|
||||
if (this.setdeleted) {
|
||||
let record = await this.$getdata(name, { id: id }, undefined, true);
|
||||
let record = await this.$getdata(name, { first: true, filter: { id } });
|
||||
record.deleted = 1;
|
||||
result = await this.$updateapi(name, record);
|
||||
} else result = await this.$deleteapi(name, id);
|
||||
|
||||
Reference in New Issue
Block a user