diff --git a/web/src/layouts/[...all].tsx b/web/src/layouts/[...all].tsx index bb704eb4..fe6d84ec 100644 --- a/web/src/layouts/[...all].tsx +++ b/web/src/layouts/[...all].tsx @@ -15,7 +15,6 @@ export default defineComponent({ setup() { const route = useRoute() const router = useRouter() - console.log(route) return () => (
diff --git a/web/src/layouts/components/iframe/index.tsx b/web/src/layouts/components/iframe/index.tsx index 7c49ddc2..17fa016c 100644 --- a/web/src/layouts/components/iframe/index.tsx +++ b/web/src/layouts/components/iframe/index.tsx @@ -13,6 +13,8 @@ export default defineComponent({ name: 'MineIframe', setup() { const route = useRoute() + const routers = useRouter().getRoutes() + const iframeStore = useIframeKeepAliveStore() onMounted(() => { const workerArea = document.querySelector('.mine-worker-area') as HTMLDivElement workerArea.classList.add('overflow-hidden') @@ -20,7 +22,16 @@ export default defineComponent({ }) return () => (
- {(route.meta?.type === 'I' && route.meta?.link) && } + {iframeStore.iframeList?.map((name: string) => { + return ( +