Skip to content

Commit

Permalink
fix: ??
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Jul 15, 2023
1 parent 60cc3f2 commit 08ff8fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/s/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const formData = ref<SurveyResponseSchema | null>(null)
const pending = ref(false)
watch(responses, async (value) => {
if (!value)
return
if (value.find(v => v.surveyId === route.params.id)) {
await navigateTo({
path: '/thanks',
Expand Down

0 comments on commit 08ff8fe

Please sign in to comment.