feat(web): add task views, file manager routing and sidebar menu

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
dailz
2026-04-20 10:39:58 +08:00
parent c197b9622b
commit 6c19fed2f3
4 changed files with 324 additions and 18 deletions

View File

@@ -5,7 +5,7 @@ const router = createRouter({
routes: [
{
path: '/',
redirect: '/jobs',
redirect: '/tasks',
},
{
path: '/jobs',
@@ -19,21 +19,33 @@ const router = createRouter({
component: () => import('@/views/Jobs/History.vue'),
meta: { title: '任务历史' },
},
{
path: '/jobs/submit',
name: 'JobsSubmit',
component: () => import('@/views/Jobs/Submit.vue'),
meta: { title: '提交任务' },
},
{
path: '/jobs/:id',
name: 'JobsDetail',
component: () => import('@/views/Jobs/Detail.vue'),
meta: { title: '任务详情' },
},
{
path: '/tasks',
name: 'TasksList',
component: () => import('@/views/Tasks/List.vue'),
meta: { title: '任务列表' },
},
{
path: '/tasks/create',
name: 'TasksCreate',
component: () => import('@/views/Tasks/Submit.vue'),
meta: { title: '提交任务' },
},
{
path: '/files',
name: 'FilesList',
component: () => import('@/views/Files/List.vue'),
meta: { title: '文件管理' },
},
{
path: '/:pathMatch(.*)*',
redirect: '/jobs',
redirect: '/tasks',
},
],
})