fix: rename resolveRef
This commit is contained in:
parent
1ff6399112
commit
f14e721caf
@ -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 === '')
|
||||
|
Loading…
x
Reference in New Issue
Block a user