fix: rename resolveRef
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
kolaente 2023-04-14 15:47:54 +02:00
parent b5cb3269bc
commit 7dc1db4db9
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -1,7 +1,7 @@
import { computed } from 'vue'
import type { Ref } from 'vue'
import {useTitle as useTitleVueUse, resolveRef} from '@vueuse/core'
import {useTitle as useTitleVueUse, toRef} from '@vueuse/core'
type UseTitleParameters = Parameters<typeof useTitleVueUse>
@ -9,7 +9,7 @@ export function useTitle(...args: UseTitleParameters) {
const [newTitle, ...restArgs] = args
const pageTitle = resolveRef(newTitle) as Ref<string>
const pageTitle = toRef(newTitle) as Ref<string>
const completeTitle = computed(() =>
(typeof pageTitle.value === 'undefined' || pageTitle.value === '')