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:
parent
20b9d90f18
commit
ac8dd05cb6
@ -15,7 +15,8 @@ export default {
|
||||
role: 'Role',
|
||||
organization: 'Organization',
|
||||
warehouse: 'Warehouse',
|
||||
reportViewer: 'Report Viewer'
|
||||
reportViewer: 'Report Viewer',
|
||||
PriceChecking: 'Price checking'
|
||||
},
|
||||
notifications: {
|
||||
// simplex
|
||||
|
@ -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
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user