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
This commit is contained in:
@@ -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/')
|
||||
}
|
||||
|
||||
13
src/pages/demo/frame/html/index.vue
Normal file
13
src/pages/demo/frame/html/index.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<d2-container-frame :filename="filename" :src="`${$baseUrl}html/demo.html`"/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
filename: __filename
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -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-')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user