From 63befd33c6b4439a7a2d419bed5b38ee1e958773 Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Tue, 27 Nov 2018 22:33:37 +0800 Subject: [PATCH] add html demo Former-commit-id: c96e7e73b5577d17be818020b7746c08b6258a3b [formerly c96e7e73b5577d17be818020b7746c08b6258a3b [formerly c96e7e73b5577d17be818020b7746c08b6258a3b [formerly c96e7e73b5577d17be818020b7746c08b6258a3b [formerly b8366a6d8947acf1a7236d2fcbe70fdde5eea560 [formerly e7d024c7319241b098239cecf544f3f506f2b522]]]]] Former-commit-id: 56e1427ccdd3d3b96508b36e900b26949636206b Former-commit-id: 41a84ffb578b100e70a0351c4de9b18255defb07 Former-commit-id: 031c4afbae818b08a3dae04ee9bc2cf7ee68a331 [formerly 8d68981562d608faf36fde7a1fea18d6b2b7570a] Former-commit-id: 5f2d083f639d0b5b33ad0ab389ada692d14ca0a4 Former-commit-id: 4d165efbcac91e0bbcf794271b0562f436277ad8 Former-commit-id: 9e8bf683f1d5cedb7d6969e8006bfd35ab019e8d Former-commit-id: 7ab7d18d389176b555ea53d20798647ea7d4f65f Former-commit-id: 337861057a4ab74d8142525448bcbcf58f7617aa --- public/html/demo.html | 100 ++++++++++++++++++++++++++++ src/menu/modules/demo-frame.js | 3 +- src/pages/demo/frame/html/index.vue | 13 ++++ src/router/modules/frame.js | 1 + 4 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 public/html/demo.html create mode 100644 src/pages/demo/frame/html/index.vue 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-') }