Skip to content

Commit 2eb17fe

Browse files
committed
Fix bug
1 parent 511df48 commit 2eb17fe

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/components/UploadVideoModal.vue

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,8 @@
8585
md="8"
8686
lg="8"
8787
>
88-
<ValidationObserver ref="form" v-slot="{ handleSubmit, reset }">
89-
<form
90-
@submit.prevent="handleSubmit(submit)"
91-
@reset.prevent="reset"
92-
>
88+
<ValidationObserver ref="form">
89+
<form @submit.prevent="submit">
9390
<ValidationProvider
9491
v-slot="{ errors }"
9592
name="Title"
@@ -324,13 +321,15 @@ export default {
324321
})
325322
326323
if (!video) return
327-
this.$nextTick(() => {
328-
this.$refs.form.reset()
329-
})
324+
// this.$nextTick(() => {
325+
// this.$refs.form.reset()
326+
// })
327+
this.formData.visibilty = ''
330328
this.imgDataUrl = ''
331329
this.selectedFile = []
332330
this.closeModal()
333-
this.$router.push('/studio/videos')
331+
332+
this.$router.push(`/studio/videos?${new Date()}`)
334333
// console.log('submittied')
335334
},
336335
async getCategories() {

0 commit comments

Comments
 (0)