diff --git a/src/composables/useRouteWithModal.ts b/src/composables/useRouteWithModal.ts index a384e0a8e..9f6fdb72a 100644 --- a/src/composables/useRouteWithModal.ts +++ b/src/composables/useRouteWithModal.ts @@ -32,6 +32,11 @@ export function useRouteWithModal() { : routePropsOption : {} + if (typeof routeProps === 'undefined') { + currentModal.value = undefined + return + } + routeProps.backdropView = backdropView.value const component = route.matched[0]?.components?.default