refactor:修改默认首页为 workspace 工作台

pull/76/head
YunaiV 2025-04-19 16:51:08 +08:00
parent 704ceac29b
commit c97469f5d5
2 changed files with 10 additions and 10 deletions

View File

@ -12,6 +12,15 @@ const routes: RouteRecordRaw[] = [
name: 'Dashboard',
path: '/dashboard',
children: [
{
name: 'Workspace',
path: '/workspace',
component: () => import('#/views/dashboard/workspace/index.vue'),
meta: {
icon: 'carbon:workspace',
title: $t('page.dashboard.workspace'),
},
},
{
name: 'Analytics',
path: '/analytics',
@ -22,15 +31,6 @@ const routes: RouteRecordRaw[] = [
title: $t('page.dashboard.analytics'),
},
},
{
name: 'Workspace',
path: '/workspace',
component: () => import('#/views/dashboard/workspace/index.vue'),
meta: {
icon: 'carbon:workspace',
title: $t('page.dashboard.workspace'),
},
},
],
},
];

View File

@ -6,7 +6,7 @@ export const LOGIN_PATH = '/auth/login';
/**
* @zh_CN
*/
export const DEFAULT_HOME_PATH = '/analytics';
export const DEFAULT_HOME_PATH = '/workspace';
export interface LanguageOption {
label: string;