perf(i18n): add generateTitle to utils

This commit is contained in:
Pan
2017-12-06 14:18:28 +08:00
parent d09923ff4f
commit acebaeae0c
4 changed files with 12 additions and 8 deletions

3
src/utils/i18n.js Normal file
View 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
}