fix: 修复一些typescript编译报错问题
This commit is contained in:
@@ -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 = [];
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user