国际化支持
This commit is contained in:
@@ -66,6 +66,12 @@ export default {
|
||||
selectProduct: 'Select Product'
|
||||
},
|
||||
menu: {
|
||||
InboundManagement: 'InboundManagement'
|
||||
//收货单据新增
|
||||
InboundManagement: 'InboundManagement',
|
||||
ReceivingDocumentsAdd:"ReceivingDocumentsAdd",
|
||||
ReceiptDocumentManagement:"ReceiptDocumentManagement",
|
||||
ManagementOfInboundDocuments:"ManagementOfInboundDocuments",
|
||||
InboundTaskManagement:"InboundTaskManagement",
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
@@ -63,5 +63,13 @@ export default {
|
||||
totalAmount: '总金额',
|
||||
submit: '提交',
|
||||
selectProduct: '选择物料'
|
||||
},
|
||||
menu:{
|
||||
InboundManagement:"入库管理",
|
||||
//收货单据新增
|
||||
ReceivingDocumentsAdd: '收货单据新增',
|
||||
ReceiptDocumentManagement:"收货单据管理",
|
||||
ManagementOfInboundDocuments:"入库单据管理",
|
||||
InboundTaskManagement:"入库作业管理",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import { getRouters } from '@/api/menu'
|
||||
import Layout from '@/layout/index'
|
||||
import ParentView from '@/components/ParentView'
|
||||
import InnerLink from '@/layout/components/InnerLink'
|
||||
import i18n from "../../lang";
|
||||
|
||||
const permission = {
|
||||
state: {
|
||||
@@ -70,6 +71,10 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
|
||||
route.component = loadView(route.component)
|
||||
}
|
||||
}
|
||||
// 在 route.component 处理后添加
|
||||
if (route.meta && route.meta.title) {
|
||||
route.meta.title = i18n.t(route.meta.title)
|
||||
}
|
||||
if (route.children != null && route.children && route.children.length) {
|
||||
route.children = filterAsyncRouter(route.children, route, type)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user