initial: bootstrap from BukidBountyApp base

This commit is contained in:
Jonathan Sykes
2026-06-06 18:43:00 +08:00
commit eb4a5731fb
5674 changed files with 160857 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { onMounted, onUnmounted } from 'vue'
import { useUIStore } from '../../stores/ui'
export function usePageTitle(title) {
const uiStore = useUIStore()
onMounted(() => {
if (title) {
uiStore.setPageTitle(title)
}
})
return {
setTitle: (newTitle) => uiStore.setPageTitle(newTitle),
resetTitle: () => uiStore.resetPageTitle()
}
}