1
0

feat: review changes

This commit is contained in:
Dominik Pschenitschni
2021-12-04 17:04:28 +01:00
parent f3358269e5
commit 2db820d926
8 changed files with 10 additions and 14 deletions

View File

@ -54,8 +54,8 @@ function useRouteWithModal() {
const historyState = computed(() => route.fullPath && window.history.state)
const routeWithModal = computed(() => {
if (historyState.value.backgroundView) {
return router.resolve(historyState.value.backgroundView)
if (historyState.value.backdropView) {
return router.resolve(historyState.value.backdropView)
} else {
return route
}
@ -65,7 +65,7 @@ function useRouteWithModal() {
const currentModal = shallowRef(null)
watchEffect(() => {
currentModal.value = historyState.value.backgroundView
currentModal.value = historyState.value.backdropView
? route.matched[0]?.components.default
: null
})