fix: review button

This commit is contained in:
Jannat Patel
2024-02-01 10:48:05 +05:30
parent 8f317d2f44
commit 53eb95612c
11 changed files with 237 additions and 199 deletions

View File

@@ -39,6 +39,8 @@ import { createToast } from '@/utils/'
const show = defineModel()
const reviews = defineModel('reloadReviews')
const hasReviewed = defineModel('hasReviewed')
let review = reactive({
review: '',
rating: 0,
@@ -73,6 +75,7 @@ function submitReview(close) {
},
onSuccess() {
reviews.value.reload()
hasReviewed.value.reload()
},
onError(err) {
createToast({