chore: upgrade to VueUse v10

This commit is contained in:
Anthony Fu 2023-05-02 01:58:55 +02:00
parent 076c47b7b0
commit 61526df93f
8 changed files with 106 additions and 61 deletions

View file

@ -52,9 +52,9 @@ export function useHydratedHead<T extends SchemaAugmentations>(input: UseHeadInp
(input as any).title = () => isHydrated.value ? typeof title === 'function' ? title() : title : ''
}
}
return useHead(() => {
return useHead((() => {
if (!isHydrated.value)
return {}
return resolveUnref(input)
}, options)
}) as UseHeadInput<T>, options)
}