1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 12:01:57 +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',
organization: 'Organization',
warehouse: 'Warehouse',
reportViewer: 'Report Viewer'
reportViewer: 'Report Viewer',
PriceChecking: 'Price checking'
},
notifications: {
// simplex

View File

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

View File

@ -100,9 +100,15 @@ export default {
},
computed: {
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
},
fromFileName() {
console.log(this.$route)
return this.formMetadata.fileName || this.$route.meta.title
},
getterForm() {