chore: initial import

This commit is contained in:
liangjian
2026-06-29 09:42:53 +08:00
commit 9fea127de1
241 changed files with 82767 additions and 0 deletions

16
utils/navigation-title.js Normal file
View File

@@ -0,0 +1,16 @@
import { getGlobalMessage, normalizeLocale } from './i18n'
export function getNavigationTitle(route = '', locale) {
return getGlobalMessage('navigation.routes', normalizeLocale(locale), String(route || '').trim())
}
export function syncNavigationBarTitle(route = '', locale) {
const title = getNavigationTitle(route, locale)
if (!title) {
return ''
}
uni.setNavigationBarTitle({
title
})
return title
}