1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-13 15:15:53 +08:00

add traslation the title (#556)

This commit is contained in:
Elsio Sanchez 2020-12-02 17:45:09 -04:00 committed by GitHub
parent 20b9d90f18
commit ac8dd05cb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -15,7 +15,8 @@ export default {
role: 'Role', role: 'Role',
organization: 'Organization', organization: 'Organization',
warehouse: 'Warehouse', warehouse: 'Warehouse',
reportViewer: 'Report Viewer' reportViewer: 'Report Viewer',
PriceChecking: 'Price checking'
}, },
notifications: { notifications: {
// simplex // simplex

View File

@ -15,7 +15,8 @@ export default {
role: 'Rol', role: 'Rol',
organization: 'Organización', organization: 'Organización',
warehouse: 'Almacén', warehouse: 'Almacén',
reportViewer: 'Visor de Reportes' reportViewer: 'Visor de Reportes',
PriceChecking: 'Consulta del precio'
}, },
notifications: { notifications: {
// simplex // simplex

View File

@ -100,9 +100,15 @@ export default {
}, },
computed: { computed: {
formTitle() { formTitle() {
if (this.$route.meta.title === 'PriceChecking') {
return this.$t('route.PriceChecking')
} else if (this.$route.meta.title === 'ProductInfo') {
return this.$t('route.ProductInfo')
}
return this.formMetadata.name || this.$route.meta.title return this.formMetadata.name || this.$route.meta.title
}, },
fromFileName() { fromFileName() {
console.log(this.$route)
return this.formMetadata.fileName || this.$route.meta.title return this.formMetadata.fileName || this.$route.meta.title
}, },
getterForm() { getterForm() {