From 497f98a2a835800b9dd74898c96a4a087a911159 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 27 Nov 2024 19:50:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=BB=98=E8=AE=A4=E5=85=B3?= =?UTF-8?q?=E9=97=ADTags-Views=E6=97=B6=EF=BC=8C=E5=86=85=E9=93=BE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=89=93=E4=B8=8D=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/AppMain.vue | 15 +++++++++++++++ src/layout/components/TagsView/index.vue | 4 ---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 8d3a136..cdd6a6f 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -15,7 +15,22 @@ import iframeToggle from "./IframeToggle/index" import useTagsViewStore from '@/store/modules/tagsView' +const route = useRoute() const tagsViewStore = useTagsViewStore() + +onMounted(() => { + addIframe() +}) + +watch((route) => { + addIframe() +}) + +function addIframe() { + if (route.meta.link) { + useTagsViewStore().addIframeView(route) + } +}