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