vue-upload-multiple-image icon indicating copy to clipboard operation
vue-upload-multiple-image copied to clipboard

Do not clear the images after submitting to the api

Open Sfsohel opened this issue 4 years ago • 1 comments

I have a form to submit the server after submit all the given data was clear but the images was still there. How I remove or reset the component after submit.There is my code how I submit the data async saveDetais(){ this.dialogloading = true; let result = await axios.post(affiliate-visit/document/store,{files:this.files,contact_details:this.contact_details,document_time:this.time,affiliator_visit_id:this.item}); if (result.data) { this.cashoutSaveSuccess=true; this.$refs.anyName.reset(); this.files = []; this.dialog = false; } }

Sfsohel avatar Oct 18 '21 05:10 Sfsohel

force re-render the component reference: https://michaelnthiessen.com/force-re-render/

oldravian avatar Aug 25 '22 07:08 oldravian