初始化
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import i18n from '@/lang'
|
||||
|
||||
const title = 'SOONWORKERDISK'
|
||||
|
||||
export default function getPageTitle(key) {
|
||||
const hasKey = i18n.te(`route.${key}`)
|
||||
if (hasKey) {
|
||||
const pageName = i18n.t(`route.${key}`)
|
||||
return `${pageName} - ${title}`
|
||||
}
|
||||
return `${title}`
|
||||
}
|
||||
Reference in New Issue
Block a user