chore(deps): upgrade nuxt

This commit is contained in:
Kevin 2023-03-21 12:20:36 +08:00
parent 0dbea5915f
commit 5717e5e677
No known key found for this signature in database
GPG key ID: 68D73816CD641CDB
6 changed files with 1034 additions and 999 deletions

View file

@ -1,8 +1,7 @@
import type { ComponentInternalInstance } from 'vue'
import { onActivated, onDeactivated, ref } from 'vue'
import type { ActiveHeadEntry, HeadEntryOptions, UseHeadInput } from '@vueuse/head'
import type { HeadAugmentations } from '@nuxt/schema'
import { useHead } from '#head'
import type { SchemaAugmentations } from '@unhead/schema'
export const isHydrated = ref(false)
@ -39,7 +38,7 @@ export function onReactivated(hook: Function, target?: ComponentInternalInstance
}
// TODO: Workaround for Nuxt bug: https://github.com/elk-zone/elk/pull/199#issuecomment-1329771961
export function useHeadFixed<T extends HeadAugmentations>(input: UseHeadInput<T>, options?: HeadEntryOptions): ActiveHeadEntry<UseHeadInput<T>> | void {
export function useHeadFixed<T extends SchemaAugmentations>(input: UseHeadInput<T>, options?: HeadEntryOptions): ActiveHeadEntry<UseHeadInput<T>> | void {
const deactivated = useDeactivated()
if (input && typeof input === 'object' && !('value' in input)) {
const title = 'title' in input ? input.title : undefined