changes
This commit is contained in:
@@ -117,7 +117,10 @@ export default {
|
||||
};
|
||||
},
|
||||
async created() {
|
||||
this.record = await this.$getdata("user", undefined, { filter: { id: this.row.id } }, true);
|
||||
this.record = await this.$getdata("user", {
|
||||
first: true,
|
||||
filter: { id: this.row.id },
|
||||
});
|
||||
this.radioBlocked = this.record.blocked ? 1 : 0;
|
||||
},
|
||||
methods: {
|
||||
@@ -158,12 +161,14 @@ export default {
|
||||
this.$set(this.check, v.code, this.check[v.code] ? false : true);
|
||||
},
|
||||
async setTokenExpiry() {
|
||||
let rows = await this.$getdata("token", {
|
||||
user: this.record.id,
|
||||
expiry: 0,
|
||||
const rows = await this.$getdata("token", {
|
||||
filter: {
|
||||
user: this.record.id,
|
||||
expiry: 0,
|
||||
},
|
||||
});
|
||||
if (rows.length === 0) return;
|
||||
rows.map((v) => (v.expiry = 1));
|
||||
rows.forEach((v) => (v.expiry = 1));
|
||||
this.$insertapi("token", rows, undefined, true);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user