blob: c1aca411fe12c5db2fa7c424ed575d5ef361477e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// translate router.meta.title, be used in breadcrumb sidebar tagsview
// export function generateTitle(title) {
// console.log(this.$te, 222)
// // const hasKey = this.$te('route.' + title)
// if (hasKey) {
// // $t :this method from vue-i18n, inject in @/lang/index.js
// const translatedTitle = this.$t('route.' + title)
// return translatedTitle
// }
// return title
// }
// export function generateTitle(title){
// const hasKey = this.$te('route.' + title)
// if(hasKey){
// const translatedTitle = this.$t('route.' + title)
// return translatedTitle
// }
// return title
// }
|