diff --git a/src/GlobalModal.tsx b/src/GlobalModal.tsx index 3e56220..f39aeb2 100644 --- a/src/GlobalModal.tsx +++ b/src/GlobalModal.tsx @@ -3,6 +3,7 @@ import { computed, defineComponent, ref, Transition, watch } from 'vue' import { OhVueIcon, addIcons } from 'oh-vue-icons' import { MdClose, MdOpeninfull, MdClosefullscreen } from 'oh-vue-icons/icons' import asyncLoader from './utils/asyncLoader' +import widgetList from '@/widgets' addIcons(MdClose, MdOpeninfull, MdClosefullscreen) const SearchPage = asyncLoader(() => import('@/layout/header/search/SearchPage')) const AdderPage = asyncLoader(() => import('@/layout/adder/AdderPage')) @@ -79,6 +80,20 @@ export default defineComponent(() => { ) : router.path === 'global-adder' ? ( + ) : router.path.startsWith('widget-') ? ( + (() => { + const name = router.path.split('-')[1] + const selected = widgetList.find((el) => el.name === name) + if (!selected) + return ( +
+ 组件维护中 +
+ ) + const compo = selected.modal + console.log(compo) + return + })() ) : null} diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..4813512 --- /dev/null +++ b/src/index.html @@ -0,0 +1,12 @@ + + + + + + Document + + +
要什么服务器,直接 oss
+