diff --git a/apps/vdn-static/src/composables/useRouteMeta.ts b/apps/vdn-static/src/composables/useRouteMeta.ts index 2b7e3ec..d530137 100644 --- a/apps/vdn-static/src/composables/useRouteMeta.ts +++ b/apps/vdn-static/src/composables/useRouteMeta.ts @@ -1,7 +1,8 @@ import { watch, onMounted, onUnmounted, type Ref, computed, unref } from 'vue' import { useRoute } from 'vue-router' import { useMeta } from './useMeta' -import type { RouteMeta, RouteMetaValue, isMetaFunction } from '../types/route-meta.d' +import type { RouteMeta } from 'vue-router' +import type { RouteMetaValue } from '../types/route-meta' /** * Composable for automatic meta tag management based on route configuration @@ -45,7 +46,7 @@ export function useRouteMeta() { routeValue: typeof route ): T | undefined => { if (value === undefined) return undefined - return typeof value === 'function' ? value(routeValue) : value + return typeof value === 'function' ? (value as Function)(routeValue) as T : value } /**