diff --git a/src/app/layouts/AppHeader.vue b/src/app/layouts/AppHeader.vue index be702ae..ce4c17b 100644 --- a/src/app/layouts/AppHeader.vue +++ b/src/app/layouts/AppHeader.vue @@ -181,7 +181,6 @@ const breadcrumbItems = computed(() => { } else { // 其他页面的标题映射(保留向后兼容) const map: Record = { - Dashboard: t('Dashboard'), AgentList: t('Agents'), AgentDetail: t('Agent Detail'), NodeList: t('Node Management'), diff --git a/src/app/router/index.ts b/src/app/router/index.ts index 102c776..c8ffcb0 100644 --- a/src/app/router/index.ts +++ b/src/app/router/index.ts @@ -29,9 +29,9 @@ const router = createRouter({ meta: { requiresAuth: true }, children: [ { - path: 'dashboard', - name: 'Dashboard', - component: () => import('../../views/Dashboard.vue') + path: '', + name: 'Home', + redirect: '/tools' }, { path: 'local-jobs', diff --git a/src/shared/stores/menu.ts b/src/shared/stores/menu.ts index 4a508d3..34b6188 100644 --- a/src/shared/stores/menu.ts +++ b/src/shared/stores/menu.ts @@ -50,7 +50,6 @@ function saveToStorage(items: AppMenuItem[]) { // - 非 System User 只能看到工具市场 function getDefaultMenus(): AppMenuItem[] { return [ - { id: 'dashboard', key: 'Dashboard', label: 'Dashboard', icon: 'tabler:dashboard', routeName: 'Dashboard', order: 1, type: 'route' }, { id: 'work', key: 'work', label: 'Work', icon: 'tabler:device-desktop', type: 'workspace', workspaceName: 'work', url: '/workspace/work', order: 2 }, { id: 'design', key: 'design', label: 'Design', icon: 'tabler:pencil', type: 'workspace', workspaceName: 'design', url: '/workspace/design', order: 3 }, { id: 'website', key: 'website', label: 'Website', icon: 'tabler:world', type: 'workspace', workspaceName: 'jsite', url: '/workspace/jsite', order: 4 }, diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue deleted file mode 100644 index 95a5224..0000000 --- a/src/views/Dashboard.vue +++ /dev/null @@ -1,213 +0,0 @@ - - - - - diff --git a/src/views/settings/Settings.vue b/src/views/settings/Settings.vue index a8a3317..6d878af 100644 --- a/src/views/settings/Settings.vue +++ b/src/views/settings/Settings.vue @@ -1834,7 +1834,7 @@ const handleSubmitFeedback = async () => { feedbackNote.value = '' // 延迟跳转 setTimeout(() => { - window.location.href = '/dashboard' + window.location.href = '/' }, 1000) } else { feedbackError.value = result.message || t('提交反馈失败')