修改登陆地址匹配

master
夜笙歌 24 hours ago
parent 883e059e3e
commit 9da65b49f7

@ -59,7 +59,7 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
if (type && route.children) {
route.children = filterChildren(route.children)
}
if (route.component && !(route.name === 'Board')) {
if (route.component && !(route.name === 'Board' || route.name === 'Produce')) {
// Layout ParentView 组件特殊处理
if (route.component === 'Layout') {
route.component = Layout
@ -71,7 +71,7 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
route.component = loadView(route.component)
}
}
if(route.name === 'Board'){
if(route.name === 'Board' || route.name === 'Produce'){
route.component = Layout2
}
if (route.children != null && route.children && route.children.length) {

@ -120,57 +120,57 @@ export default {
{
floor: 1,
processId: 11,
route: '/board/firstFloor'
route: '/produce/firstFloor'
},
{
floor: 1,
processId: 12,
route: '/board/firstFloor'
route: '/produce/firstFloor'
},
{
floor: 4,
processId: 41,
route: '/board/laserLight'
route: '/produce/laserLight'
},
{
floor: 4,
processId: 42,
route: '/board/weld'//
route: '/produce/weld'//
},
{
floor: 4,
processId: 43,
route: '/board/weld'//
route: '/produce/weld'//
},
{
floor: 4,
processId: 44,
route: '/board/assemble'//
route: '/produce/assemble'//
},
{
floor: 5,
processId: 51,
route: '/board/fifthFloor?id=1'//
route: '/produce/fifthFloor?id=1'//
},
{
floor: 5,
processId: 52,
route: '/board/fifthFloor?id=2'//
route: '/produce/fifthFloor?id=2'//
},
{
floor: 5,
processId: 54,
route: '/board/fifthFloor?id=3'//
route: '/produce/fifthFloor?id=3'//
},
{
floor: 1,
processId: 511,
route: '/board/firstFloor?id=2'//
route: '/produce/firstFloor?id=2'//
},
{
floor: 1,
processId: 512,
route: '/board/firstFloor?id=3'//
route: '/produce/firstFloor?id=3'//
}
]
}
@ -234,7 +234,7 @@ export default {
routeData = {
floor: 4,
processId: 44,
route: '/board/assemble'//
route: '/produce/assemble'//
}
}
let query = { processName: this.loginForm.processName }

Loading…
Cancel
Save