'admin-22.11.17:修复v2.3.0版本iframe右键菜单刷新'
Signed-off-by: lyt-Top <1105290566@qq.com>
This commit is contained in:
parent
cdf1b715df
commit
5cb614c277
@ -75,7 +75,13 @@ export default defineComponent({
|
|||||||
// 监听 iframe refreshKey 变化,用于 tagsview 右键菜单刷新
|
// 监听 iframe refreshKey 变化,用于 tagsview 右键菜单刷新
|
||||||
watch(
|
watch(
|
||||||
() => props.refreshKey,
|
() => 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,
|
deep: true,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user