fix: 修复typescript一些编译报错

This commit is contained in:
郝先瑞
2022-01-19 23:40:25 +08:00
parent 16ebb4eb22
commit 9e15f53869
9 changed files with 74 additions and 61 deletions

View File

@@ -53,7 +53,7 @@ const props = defineProps({
}
})
const onlyOneChild = ref({});
const onlyOneChild = ref();
function hasOneShowingChild(children = [] as any, parent: RouteRecordRaw) {
if (!children) {