fix: don't render route modal when no properties are defined
This commit is contained in:
parent
5720a86bc3
commit
b1fe3fe29b
@ -32,6 +32,11 @@ export function useRouteWithModal() {
|
|||||||
: routePropsOption
|
: routePropsOption
|
||||||
: {}
|
: {}
|
||||||
|
|
||||||
|
if (typeof routeProps === 'undefined') {
|
||||||
|
currentModal.value = undefined
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
routeProps.backdropView = backdropView.value
|
routeProps.backdropView = backdropView.value
|
||||||
|
|
||||||
const component = route.matched[0]?.components?.default
|
const component = route.matched[0]?.components?.default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user