feat: ✨ 迁移嵌套页面演示
This commit is contained in:
@@ -14,8 +14,6 @@ import demoBusiness from './modules/demo-business'
|
||||
import demoD2Crud from './modules/demo-d2-crud'
|
||||
// CRUD PLUS
|
||||
import demoD2CrudPlus from './modules/demo-d2-crud-plus'
|
||||
// 第三方网页
|
||||
import demoFrame from './modules/demo-frame'
|
||||
|
||||
/**
|
||||
* @description 给菜单数据补充上 path 字段
|
||||
@@ -40,8 +38,7 @@ export const menuAside = supplementPath([
|
||||
demoPlayground,
|
||||
demoBusiness,
|
||||
demoD2Crud,
|
||||
demoD2CrudPlus,
|
||||
demoFrame
|
||||
demoD2CrudPlus
|
||||
])
|
||||
|
||||
// 菜单 顶栏
|
||||
@@ -60,7 +57,6 @@ export const menuHeader = supplementPath([
|
||||
demoComponents,
|
||||
demoCharts,
|
||||
demoPlugins,
|
||||
demoFrame,
|
||||
{
|
||||
title: '新窗口打开链接',
|
||||
icon: 'link',
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
export default {
|
||||
path: '/demo/frame',
|
||||
title: '内嵌网页',
|
||||
icon: 'globe',
|
||||
children: (pre => [
|
||||
{ path: `${pre}index`, title: 'Frame ', icon: 'home' },
|
||||
{ path: `${pre}d2-doc`, title: 'D2Admin 中文文档', iconSvg: 'd2-admin' },
|
||||
{ path: `${pre}html`, title: '静态 HTML', icon: 'code' },
|
||||
{ path: `${pre}report`, title: '构建分析', icon: 'pie-chart' }
|
||||
])('/demo/frame/')
|
||||
}
|
||||
@@ -37,6 +37,16 @@ export default {
|
||||
{ title: '正在开发 3' }
|
||||
]
|
||||
},
|
||||
{
|
||||
path: `${pre}frame`,
|
||||
title: '内嵌网页',
|
||||
icon: 'globe',
|
||||
children: [
|
||||
{ path: `${pre}frame/d2-doc`, title: 'D2Admin 中文文档', iconSvg: 'd2-admin' },
|
||||
{ path: `${pre}frame/html`, title: '静态 HTML', icon: 'code' },
|
||||
{ path: `${pre}frame/report`, title: '构建分析', icon: 'pie-chart' }
|
||||
]
|
||||
},
|
||||
{
|
||||
path: `${pre}store`,
|
||||
title: '全局状态管理',
|
||||
|
||||
Reference in New Issue
Block a user