| | |
| | | if (!permissionRoles) return true |
| | | return roles.some(role => permissionRoles.indexOf(role) >= 0) |
| | | } |
| | | const whiteList = ['/login', '/auth-redirect','/agreement','/register','/productionEquipment','/instrumentData','/oneFromanother','/hiddenDangerTroubleshootingList','/preview','/inspectionNotExist','/send','/Issuedbysuperiors','/oneFromanotherN','/summaryPotentialSafetyHzards','/safetyHazardAccount','/superiorsSend','/accountSend','/existN','/exist','/hazardSource','/safetyedit','/Dualbase']// no redirect whitelist |
| | | const whiteList = ['/login', '/auth-redirect','/agreement','/register','/productionEquipment','/instrumentData','/oneFromanother','/hiddenDangerTroubleshootingList','/preview','/inspectionNotExist','/send','/Issuedbysuperiors','/oneFromanotherN','/summaryPotentialSafetyHzards','/safetyHazardAccount','/superiorsSend','/accountSend','/existN','/exist','/hazardSource','/safetyedit','/Dualbase','/supervision']// no redirect whitelist |
| | | |
| | | router.beforeEach((to, from, next) => { |
| | | NProgress.start() // start progress bar |
| | |
| | | // meta: { title: '安全隐患台账-编辑', icon: '' } |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '/supervision', |
| | | // name: '安全隐患台账-关联危险源', |
| | | component: () => import('@/views/safetyHazardAccount/supervision'), |
| | | // meta: { title: '安全隐患台账-关联危险源', icon: '' } |
| | | hidden: true |
| | | }, |
| | | ] |
| | | } |
| | | ] |
对比新文件 |
| | |
| | | <template> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "supervision" |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |