Fix custom redirect (#273)

This commit is contained in:
formsdev 2024-01-04 21:35:29 +05:30 committed by GitHub
parent ff9823be2d
commit 33458f25f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,7 @@
<script setup> <script setup>
const route = useRoute() definePageMeta({
useRouter().push({ redirect: to => {
name: 'forms-slug-show-submissions', return { name: 'forms-slug-show-submissions'}
params: {
slug: route.params.slug
} }
}) })
</script> </script>

View File

@ -1,5 +1,7 @@
<script setup> <script setup>
useRouter().push({ definePageMeta({
name: 'settings-profile' redirect: to => {
return { name: 'settings-profile'}
}
}) })
</script> </script>