This commit is contained in:
Viet An
2026-05-25 15:23:12 +07:00
parent 5f2a98977b
commit 6685a43360
48 changed files with 732 additions and 2901 deletions

View File

@@ -67,7 +67,7 @@ export default {
},
},
async created() {
this.files = await this.$getdata(this.api, { ref: this.row.id }); //file__type: 2
this.files = await this.$getdata(this.api, { filter: { ref: this.row.id } }); //file__type: 2
},
methods: {
async remove(v, i) {
@@ -85,7 +85,7 @@ export default {
this.files = this.files.concat(rs);
if (this.pagename) {
let vapi = this.vapi ? this.vapi : this.api.replace("file", "");
let ele = await this.$getdata(vapi, { id: this.row.id }, undefined, true);
let ele = await this.$getdata(vapi, { filter: { id: this.row.id }, first: true });
this.$updatepage(this.pagename, ele);
}
},