forked from F-loat/vue-simplemde
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
After submitting the value on field I can't seem to empty it even after submitting
export default {
props: ["questionSlug"],
data() {
return {
form: {
body: ""
}
};
},
methods: {
submit() {
axios
.post(`/api/question/${this.questionSlug}/reply`, {
body: this.form.body
})
.then((response) => {
this.form.body = ""
EventBus.$emit("newReply", response.data.replies);
})
.catch(error => console.error(error)
);
}
}
};
here is my code for that part
Metadata
Metadata
Assignees
Labels
No labels