| | |
| | | return roles.some(role => permissionRoles.indexOf(role) >= 0) |
| | | } |
| | | |
| | | const whiteList = ['/login', '/auth-redirect','/agreement','/register','/productionEquipment','/instrumentData','/equipmentAlarm'] // no redirect whitelist |
| | | const whiteList = ['/login', '/auth-redirect','/agreement','/register','/productionEquipment','/instrumentData','/oneFromanother'] // no redirect whitelist |
| | | |
| | | router.beforeEach((to, from, next) => { |
| | | NProgress.start() // start progress bar |
| | |
| | | // meta: { title: '自查隐患管理-填写督察', icon: '' } |
| | | hidden: true |
| | | }, |
| | | { |
| | | id: 7, |
| | | parentId: 0, |
| | | path: '/oneFromanother', |
| | | name: '内部举一反三', |
| | | component: () => import('@/views/oneFromanother'), |
| | | meta: { title: '内部举一反三', icon: '' } |
| | | }, |
| | | ] |
| | | } |
| | | ] |
对比新文件 |
| | |
| | | <template> |
| | | <div> |
| | | divxxxxx |
| | | </div> |
| | | </template> |
| | | <script> |
| | | |
| | | </script> |
| | | <style scoped> |
| | | |
| | | </style> |