fix: 修复一些typescript编译报错问题

This commit is contained in:
郝先瑞
2022-01-22 00:32:20 +08:00
parent da4f92f577
commit 9973aff235
6 changed files with 18 additions and 14 deletions

View File

@@ -40,7 +40,7 @@ import {RouteRecordRaw} from "vue-router";
const props = defineProps({
item: {
type: Object as PropType<RouteRecordRaw>,
type: Object,
required: true
},
isNest: {
@@ -55,7 +55,7 @@ const props = defineProps({
const onlyOneChild = ref();
function hasOneShowingChild(children = [] as any, parent: RouteRecordRaw) {
function hasOneShowingChild(children = [] as any, parent: any) {
if (!children) {
children = [];
}

View File

@@ -68,8 +68,8 @@ const {ctx} = getCurrentInstance() as any
const router = useRouter()
const route = useRoute();
const visitedViews = computed(() => tagsViewStoreHook().visitedViews)
const routes = computed(() => usePermissionStoreHook().routes)
const visitedViews = computed<any>(() => tagsViewStoreHook().visitedViews)
const routes = computed<any>(() => usePermissionStoreHook().routes)
const affixTags = ref([]);
const visible = ref(false);