From 8f851f5e51b0b65a9f1eb2da74be696232d6a737 Mon Sep 17 00:00:00 2001 From: insistence <3055204202@qq.com> Date: Tue, 10 Dec 2024 15:53:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=85=B3=E9=97=ADTags-Views=E6=97=B6=EF=BC=8C=E5=86=85?= =?UTF-8?q?=E9=93=BE=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/ruoyi-fastapi-frontend/src/layout/components/AppMain.vue b/ruoyi-fastapi-frontend/src/layout/components/AppMain.vue index 42fffdf..c4c2ddc 100644 --- a/ruoyi-fastapi-frontend/src/layout/components/AppMain.vue +++ b/ruoyi-fastapi-frontend/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) + } +}