Fix custom redirect (#273)
This commit is contained in:
parent
ff9823be2d
commit
33458f25f4
|
@ -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>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<script setup>
|
||||
useRouter().push({
|
||||
name: 'settings-profile'
|
||||
definePageMeta({
|
||||
redirect: to => {
|
||||
return { name: 'settings-profile'}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue