refactor:修改默认首页为 workspace 工作台
parent
704ceac29b
commit
c97469f5d5
|
@ -12,6 +12,15 @@ const routes: RouteRecordRaw[] = [
|
||||||
name: 'Dashboard',
|
name: 'Dashboard',
|
||||||
path: '/dashboard',
|
path: '/dashboard',
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
name: 'Workspace',
|
||||||
|
path: '/workspace',
|
||||||
|
component: () => import('#/views/dashboard/workspace/index.vue'),
|
||||||
|
meta: {
|
||||||
|
icon: 'carbon:workspace',
|
||||||
|
title: $t('page.dashboard.workspace'),
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Analytics',
|
name: 'Analytics',
|
||||||
path: '/analytics',
|
path: '/analytics',
|
||||||
|
@ -22,15 +31,6 @@ const routes: RouteRecordRaw[] = [
|
||||||
title: $t('page.dashboard.analytics'),
|
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'),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -6,7 +6,7 @@ export const LOGIN_PATH = '/auth/login';
|
||||||
/**
|
/**
|
||||||
* @zh_CN 默认首页地址
|
* @zh_CN 默认首页地址
|
||||||
*/
|
*/
|
||||||
export const DEFAULT_HOME_PATH = '/analytics';
|
export const DEFAULT_HOME_PATH = '/workspace';
|
||||||
|
|
||||||
export interface LanguageOption {
|
export interface LanguageOption {
|
||||||
label: string;
|
label: string;
|
||||||
|
|
Loading…
Reference in New Issue