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; } }
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; } }