'admin-22.11.17:修复v2.3.0版本iframe右键菜单刷新'

Signed-off-by: lyt-Top <1105290566@qq.com>
This commit is contained in:
lyt-Top 2022-11-16 16:39:38 +00:00 committed by Gitee
parent cdf1b715df
commit 5cb614c277
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -75,7 +75,13 @@ export default defineComponent({
// iframe refreshKey tagsview
watch(
() => props.refreshKey,
() => {},
() => {
const item: any = props.list.find((v: any) => v.path === route.path);
if (item && item.meta.isIframeOpen) item.meta.isIframeOpen = false;
nextTick(() => {
item.meta.isIframeOpen = true;
});
},
{
deep: true,
}