diff --git a/public/html/demo.html b/public/html/demo.html new file mode 100644 index 00000000..e4823f04 --- /dev/null +++ b/public/html/demo.html @@ -0,0 +1,100 @@ + + + + + + + + demo + + +
+
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/src/menu/modules/demo-frame.js b/src/menu/modules/demo-frame.js index c00234bb..8b479bcb 100644 --- a/src/menu/modules/demo-frame.js +++ b/src/menu/modules/demo-frame.js @@ -3,6 +3,7 @@ export default { title: '内嵌网页', icon: 'globe', children: (pre => [ - { path: `${pre}d2-doc`, title: 'D2Admin 中文文档', iconSvg: 'd2-admin' } + { path: `${pre}d2-doc`, title: 'D2Admin 中文文档', iconSvg: 'd2-admin' }, + { path: `${pre}html`, title: '静态 HTML', icon: 'code' } ])('/demo/frame/') } diff --git a/src/pages/demo/frame/html/index.vue b/src/pages/demo/frame/html/index.vue new file mode 100644 index 00000000..b916bfa4 --- /dev/null +++ b/src/pages/demo/frame/html/index.vue @@ -0,0 +1,13 @@ + + + diff --git a/src/router/modules/frame.js b/src/router/modules/frame.js index cb6d3537..4e360ba7 100644 --- a/src/router/modules/frame.js +++ b/src/router/modules/frame.js @@ -9,6 +9,7 @@ export default { redirect: { name: 'demo-frame-index' }, component: layoutHeaderAside, children: (pre => [ + { path: 'html', name: `${pre}html`, component: () => import('@/pages/demo/frame/html'), meta: { ...meta, title: '静态 HTML' } }, { path: 'd2-doc', name: `${pre}d2-doc`, component: () => import('@/pages/demo/frame/d2-doc'), meta: { ...meta, title: 'D2Admin 中文文档' } } ])('demo-frame-') }