This commit is contained in:
parent
b5cb3269bc
commit
7dc1db4db9
|
@ -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 === '')
|
||||
|
|
Reference in New Issue
Block a user