diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index b6c7b61c..7e3da5c5 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -40,7 +40,7 @@ onMounted(() => { addIframe(); }); -watchEffect(() => { +watch(()=>route.fullPath,() => { addIframe(); }); diff --git a/src/plugins/tab.ts b/src/plugins/tab.ts index 1f673b34..7525d085 100644 --- a/src/plugins/tab.ts +++ b/src/plugins/tab.ts @@ -58,6 +58,9 @@ export default { } return router.push('/'); } + if(obj.meta.link){ + useTagsViewStore().delIframeView(obj); + } return useTagsViewStore().delView(obj); }, // 关闭所有tab页签