diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index b6c7b61c3ead68d26967b0d5fd5c38f2284b5dd6..7e3da5c511c3909105001963242d9d895219089f 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 1f673b349485506adca508ad314adc904206ac61..7525d08574289e2f285330a5da94d4f52638a037 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页签