feature: 当用户关闭iframe内嵌页面时,

删除iframe页面而不是隐藏,
用户再此打开时保证为新的页面
This commit is contained in:
matangyue@guomai.cc 2025-06-25 15:38:40 +08:00
parent 71dceeacc2
commit 0741cb0156
2 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,7 @@ onMounted(() => {
addIframe();
});
watchEffect(() => {
watch(()=>route.fullPath,() => {
addIframe();
});

View File

@ -58,6 +58,9 @@ export default {
}
return router.push('/');
}
if(obj.meta.link){
useTagsViewStore().delIframeView(obj);
}
return useTagsViewStore().delView(obj);
},
// 关闭所有tab页签