8 lines
230 B
TypeScript
8 lines
230 B
TypeScript
export function usePageTitle(title: string | (() => string)) {
|
|
const computedTitle = typeof title === 'function' ? computed(title) : ref(title)
|
|
|
|
useHead({
|
|
title: computed(() => `${computedTitle.value} · Segur-OS`)
|
|
})
|
|
}
|