index.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import DatasourceView from '../module/datasource/page/DatasourceView.jsx'
  2. import SyncTaskAdd from '../module/datasource/component/SyncTaskAdd.jsx'
  3. import LogWatcher from '../module/datasource/component/LogWatcher.jsx'
  4. import TaskLog from '../module/tasklog/page/TaskLog.jsx';
  5. import TaskMgmtView from '../module/taskmgmt/page/TaskMgmtView.jsx';
  6. import TaskCreaterView from '../module/taskmgmt/component/TaskCreaterView.jsx';
  7. import TaskLogWatcher from '../module/tasklog/component/TaskLogWatcher.jsx';
  8. export const routes = [
  9. {
  10. path: '/datasource',
  11. title: '数据源管理',
  12. // exact: true,
  13. component: DatasourceView,
  14. children: [{
  15. path: '/datasource/sync-task',
  16. component: SyncTaskAdd,
  17. }, {
  18. path: '/datasource/log-watcher',
  19. component: LogWatcher,
  20. }]
  21. },
  22. {
  23. path: '/task-mgmt',
  24. title: '任务管理',
  25. component: TaskMgmtView,
  26. children: [{
  27. path: '/task-mgmt/create-task',
  28. component: TaskCreaterView,
  29. }]
  30. },
  31. {
  32. path: '/task-log',
  33. title: '任务日志',
  34. component: TaskLog,
  35. children: [
  36. {
  37. path: '/task-log/log-watcher',
  38. component: TaskLogWatcher
  39. }
  40. ]
  41. }
  42. ]