Skip to content

Commit

Permalink
feat: ✨ 迁移嵌套页面演示
Browse files Browse the repository at this point in the history
  • Loading branch information
FairyEver committed Aug 31, 2020
1 parent e8f9fc5 commit 9485aab
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 60 deletions.
6 changes: 1 addition & 5 deletions src/menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 字段
Expand All @@ -40,8 +38,7 @@ export const menuAside = supplementPath([
demoPlayground,
demoBusiness,
demoD2Crud,
demoD2CrudPlus,
demoFrame
demoD2CrudPlus
])

// 菜单 顶栏
Expand All @@ -60,7 +57,6 @@ export const menuHeader = supplementPath([
demoComponents,
demoCharts,
demoPlugins,
demoFrame,
{
title: '新窗口打开链接',
icon: 'link',
Expand Down
11 changes: 0 additions & 11 deletions src/menu/modules/demo-frame.js

This file was deleted.

10 changes: 10 additions & 0 deletions src/menu/modules/demo-playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '全局状态管理',
Expand Down
20 changes: 0 additions & 20 deletions src/router/modules/frame.js

This file was deleted.

5 changes: 4 additions & 1 deletion src/router/modules/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export default {
{ path: 'log/log', name: `${pre}log-log`, component: _import('demo/playground/log/log'), meta: { ...meta, title: '日志记录' } },
{ path: 'add-routes/routes', name: `${pre}add-routes-routes`, component: _import('demo/playground/add-routes/routes'), meta: { ...meta, title: '添加页面' } },
{ path: 'env', name: `${pre}env`, component: _import('demo/playground/env'), meta: { ...meta, title: '环境信息' } },
{ path: 'locales', name: `${pre}locales`, component: _import('demo/playground/locales'), meta: { ...meta, title: '国际化' } }
{ path: 'locales', name: `${pre}locales`, component: _import('demo/playground/locales'), meta: { ...meta, title: '国际化' } },
{ path: 'frame/html', name: `${pre}frame-html`, component: _import('demo/playground/frame/html'), meta: { ...meta, title: '静态 HTML' } },
{ path: 'frame/report', name: `${pre}frame-report`, component: _import('demo/playground/frame/report'), meta: { ...meta, title: 'Size report' } },
{ path: 'frame/d2-doc', name: `${pre}frame-d2-doc`, component: _import('demo/playground/frame/d2-doc'), meta: { ...meta, title: 'D2Admin 中文文档' } }
])('demo-playground-')
}
2 changes: 0 additions & 2 deletions src/router/routes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import playground from './modules/playground'
import frame from './modules/frame'
import d2Crud from './modules/d2-crud'
import d2CrudPlus from './modules/d2-crud-plus'
import plugins from './modules/plugins'
Expand Down Expand Up @@ -58,7 +57,6 @@ const frameIn = [
]
},
playground,
frame,
d2Crud,
d2CrudPlus,
plugins,
Expand Down
21 changes: 0 additions & 21 deletions src/views/demo/frame/index/index.vue

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9485aab

Please sign in to comment.