big refactor
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
export function usePageTitle(title: string) {
|
||||
export function usePageTitle(title: string | (() => string)) {
|
||||
const computedTitle = typeof title === 'function' ? computed(title) : ref(title)
|
||||
|
||||
useHead({
|
||||
title,
|
||||
titleTemplate: (t) => (t ? `${t} · Policy UI` : 'Policy UI')
|
||||
title: computed(() => `${computedTitle.value} · Segur-OS`)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user