1
0

fix ts errors in various files

This commit is contained in:
Dominik Pschenitschni
2022-01-30 16:47:23 +01:00
parent 98b41a22c6
commit de3c47dc69
11 changed files with 58 additions and 20 deletions

View File

@ -44,7 +44,7 @@
</template>
<script lang="ts" setup>
import {watch, computed, shallowRef, watchEffect, h} from 'vue'
import {watch, computed, shallowRef, watchEffect, VNode, h} from 'vue'
import {useStore} from 'vuex'
import {useRoute, useRouter} from 'vue-router'
import {useEventListener} from '@vueuse/core'
@ -66,12 +66,12 @@ function useRouteWithModal() {
}
})
const currentModal = shallowRef(null)
const currentModal = shallowRef<VNode>()
watchEffect(() => {
const hasBackdropView = historyState.value.backdropView
if (!hasBackdropView) {
currentModal.value = null
currentModal.value = undefined
return
}