fix: mock menu (#630)

This commit is contained in:
liweijie0812 2023-11-11 17:51:00 +08:00 committed by GitHub
parent 03e959696e
commit b46e9a2a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ export default [
}, },
}, },
{ {
url: '/api/get-menu-list', url: '/api/get-menu-list-i18n',
method: 'get', method: 'get',
timeout: 2000, timeout: 2000,
response: { response: {
@ -159,7 +159,10 @@ export default [
component: 'LAYOUT', component: 'LAYOUT',
redirect: '/list/base', redirect: '/list/base',
meta: { meta: {
title: '列表页', title: {
zh_CN: '列表页',
en_US: 'List',
},
icon: 'view-list', icon: 'view-list',
}, },
children: [ children: [
@ -168,7 +171,10 @@ export default [
name: 'ListBase', name: 'ListBase',
component: '/list/base/index', component: '/list/base/index',
meta: { meta: {
title: '基础列表页', title: {
zh_CN: '基础列表页',
en_US: 'Base List',
},
}, },
}, },
{ {
@ -176,7 +182,10 @@ export default [
name: 'ListCard', name: 'ListCard',
component: '/list/card/index', component: '/list/card/index',
meta: { meta: {
title: '卡片列表页', title: {
zh_CN: '卡片列表页',
en_US: 'Card List',
},
}, },
}, },
{ {
@ -184,7 +193,10 @@ export default [
name: 'ListFilter', name: 'ListFilter',
component: '/list/filter/index', component: '/list/filter/index',
meta: { meta: {
title: '筛选列表页', title: {
zh_CN: '筛选列表页',
en_US: 'Filter List',
},
}, },
}, },
{ {
@ -192,7 +204,10 @@ export default [
name: 'ListTree', name: 'ListTree',
component: '/list/tree/index', component: '/list/tree/index',
meta: { meta: {
title: '树状筛选列表页', title: {
zh_CN: '树状筛选列表页',
en_US: 'Tree List',
},
}, },
}, },
], ],
@ -203,7 +218,10 @@ export default [
component: 'LAYOUT', component: 'LAYOUT',
redirect: '/form/base', redirect: '/form/base',
meta: { meta: {
title: '表单页', title: {
zh_CN: '表单页',
en_US: 'Form',
},
icon: 'edit-1', icon: 'edit-1',
}, },
children: [ children: [
@ -212,7 +230,10 @@ export default [
name: 'FormBase', name: 'FormBase',
component: '/form/base/index', component: '/form/base/index',
meta: { meta: {
title: '基础表单页', title: {
zh_CN: '基础表单页',
en_US: 'Base Form',
},
}, },
}, },
{ {
@ -220,8 +241,10 @@ export default [
name: 'FormStep', name: 'FormStep',
component: '/form/step/index', component: '/form/step/index',
meta: { meta: {
title: '分步表单页', title: {
keepAlive: false, zh_CN: '分步表单页',
en_US: 'Step Form',
},
}, },
}, },
], ],
@ -232,7 +255,10 @@ export default [
component: 'LAYOUT', component: 'LAYOUT',
redirect: '/detail/base', redirect: '/detail/base',
meta: { meta: {
title: '详情页', title: {
zh_CN: '详情页',
en_US: 'Detail',
},
icon: 'layers', icon: 'layers',
}, },
children: [ children: [
@ -241,7 +267,10 @@ export default [
name: 'DetailBase', name: 'DetailBase',
component: '/detail/base/index', component: '/detail/base/index',
meta: { meta: {
title: '基础详情页', title: {
zh_CN: '基础详情页',
en_US: 'Base Detail',
},
}, },
}, },
{ {
@ -249,7 +278,10 @@ export default [
name: 'DetailAdvanced', name: 'DetailAdvanced',
component: '/detail/advanced/index', component: '/detail/advanced/index',
meta: { meta: {
title: '多卡片详情页', title: {
zh_CN: '多卡片详情页',
en_US: 'Card Detail',
},
}, },
}, },
{ {
@ -257,7 +289,10 @@ export default [
name: 'DetailDeploy', name: 'DetailDeploy',
component: '/detail/deploy/index', component: '/detail/deploy/index',
meta: { meta: {
title: '数据详情页', title: {
zh_CN: '数据详情页',
en_US: 'Data Detail',
},
}, },
}, },
{ {
@ -265,7 +300,10 @@ export default [
name: 'DetailSecondary', name: 'DetailSecondary',
component: '/detail/secondary/index', component: '/detail/secondary/index',
meta: { meta: {
title: '二级详情页', title: {
zh_CN: '二级详情页',
en_US: 'Secondary Detail',
},
}, },
}, },
], ],
@ -277,7 +315,10 @@ export default [
redirect: '/frame/doc', redirect: '/frame/doc',
meta: { meta: {
icon: 'internet', icon: 'internet',
title: '外部页面', title: {
zh_CN: '外部页面',
en_US: 'External',
},
}, },
children: [ children: [
{ {
@ -286,7 +327,10 @@ export default [
component: 'IFrame', component: 'IFrame',
meta: { meta: {
frameSrc: 'https://tdesign.tencent.com/starter/docs/vue-next/get-started', frameSrc: 'https://tdesign.tencent.com/starter/docs/vue-next/get-started',
title: '使用文档(内嵌)', title: {
zh_CN: '使用文档(内嵌)',
en_US: 'Documentation(IFrame)',
},
}, },
}, },
{ {
@ -295,7 +339,10 @@ export default [
component: 'IFrame', component: 'IFrame',
meta: { meta: {
frameSrc: 'https://tdesign.tencent.com/vue-next/getting-started', frameSrc: 'https://tdesign.tencent.com/vue-next/getting-started',
title: 'TDesign 文档(内嵌)', title: {
zh_CN: 'TDesign 文档(内嵌)',
en_US: 'TDesign (IFrame)',
},
}, },
}, },
{ {
@ -305,7 +352,10 @@ export default [
meta: { meta: {
frameSrc: 'https://tdesign.tencent.com/vue-next/getting-started', frameSrc: 'https://tdesign.tencent.com/vue-next/getting-started',
frameBlank: true, frameBlank: true,
title: 'TDesign 文档(外链)', title: {
zh_CN: 'TDesign 文档(外链',
en_US: 'TDesign Doc(Link)',
},
}, },
}, },
], ],