mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-12 22:29:59 +08:00
add traslation the title (#556)
This commit is contained in:
parent
20b9d90f18
commit
ac8dd05cb6
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user