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>
const route = useRoute()
useRouter().push({
name: 'forms-slug-show-submissions',
params: {
slug: route.params.slug
definePageMeta({
redirect: to => {
return { name: 'forms-slug-show-submissions'}
}
})
</script>

View File

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