perf(i18n): add generateTitle to utils
This commit is contained in:
3
src/utils/i18n.js
Normal file
3
src/utils/i18n.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export function generateTitle(title) {
|
||||
return this.$t('route.' + title) // $t :this method from vue-i18n ,inject in @/lang/index.js
|
||||
}
|
Reference in New Issue
Block a user