const routes = [ { path: '/', redirect: '/index', }, // 本地跑时为了方便先使用这个 // { path: '/', redirect: '/404', }, // 后续上线时开放 // 节点初始化工具 { path: '/nodeInit/:fileType', name: '节点初始化工具', component: '@/pages/NodeInitTool', layout: false }, // 063 { path: '/restore/:fileType', name: '恢复出厂数据', component: '@/pages/M063/Restore', layout: false }, { path: '/identifier/:fileType', name: '系统自检', component: '@/pages/M063/Init', layout: false }, { path: '/passwordManage/:fileType', name: '密码管理', component: '@/pages/M063/PasswordManage' }, { path: '/unify/:fileType', name: '一体化管理', component: '@/pages/M063/UnifyManage' }, // ------------------------------设备管理---------------------------------- { path: '/machineManage/register/:fileType', name: '设备注册', component: '@/pages/MachineManage/MachineRegister' }, { path: '/machineManage/offline/:fileType', name: '离线管理', component: '@/pages/MachineManage/OffLineManage' }, { path: '/machineManage/offline/import/:fileType', name: '离线管理导入', component: '@/pages/MachineManage/OffLineManage/ImportStep' }, { path: '/machineManage/offline/export/:fileType', name: '离线管理导出', component: '@/pages/MachineManage/OffLineManage/ExportStep' }, // --------------------------------------------------------------------------- // ------------------------------密钥管理---------------------------------- {path:'/secretmanage/receive/:fileType',name:'接收预制密钥',component:'@/pages/SecretManage/ReceiveSecret'}, {path:'/secretmanage/detail/:fileType',name:'预制密钥信息',component:'@/pages/SecretManage/SecretInfo'}, {path:'/secretmanage/assemble/:fileType',name:'密钥装配',component:'@/pages/SecretManage/SecretAssemble'}, { path: '/secretmanage/offline/:fileType', name: '离线管理', component: '@/pages/SecretManage/OffLineManage' }, { path: '/secretmanage/offline/import/:fileType', name: '离线管理导入', component: '@/pages/SecretManage/OffLineManage/ImportStep' }, { path: '/secretmanage/offline/export/:fileType', name: '离线管理导出', component: '@/pages/SecretManage/OffLineManage/ExportStep' }, // --------------------------------------------------------------------------- // 桌面 { path: '/index', name: '桌面', component: '@/pages/index', layout: false }, // 建设中页面 { path: '/construction', component: '@/pages/construction' }, { path: '*', component: '@/pages/404', layout: false } ] export default routes;