changes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user