'admin-22.11.17:优化v2.3.0版本iframe右键菜单刷新问题'
This commit is contained in:
parent
f00fc0d2f1
commit
3a8f31ab89
@ -58,7 +58,7 @@ export default defineComponent({
|
|||||||
iframeRef.value.forEach((v: any) => {
|
iframeRef.value.forEach((v: any) => {
|
||||||
if (v.dataset.url === val) {
|
if (v.dataset.url === val) {
|
||||||
v.onload = () => {
|
v.onload = () => {
|
||||||
if (item && item.meta.isIframeOpen && item.meta.loading) item.meta.loading = false;
|
if (item.meta.isIframeOpen && item.meta.loading) item.meta.loading = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -69,7 +69,8 @@ export default defineComponent({
|
|||||||
() => route.fullPath,
|
() => route.fullPath,
|
||||||
(val) => {
|
(val) => {
|
||||||
const item: any = props.list.find((v: any) => v.path === val);
|
const item: any = props.list.find((v: any) => v.path === val);
|
||||||
if (item && !item.meta.isIframeOpen) item.meta.isIframeOpen = true;
|
if (!item) return false;
|
||||||
|
if (!item.meta.isIframeOpen) item.meta.isIframeOpen = true;
|
||||||
closeIframeLoading(val, item);
|
closeIframeLoading(val, item);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -81,7 +82,8 @@ export default defineComponent({
|
|||||||
() => props.refreshKey,
|
() => props.refreshKey,
|
||||||
() => {
|
() => {
|
||||||
const item: any = props.list.find((v: any) => v.path === route.path);
|
const item: any = props.list.find((v: any) => v.path === route.path);
|
||||||
if (item && item.meta.isIframeOpen) item.meta.isIframeOpen = false;
|
if (!item) return false;
|
||||||
|
if (item.meta.isIframeOpen) item.meta.isIframeOpen = false;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
item.meta.isIframeOpen = true;
|
item.meta.isIframeOpen = true;
|
||||||
item.meta.loading = true;
|
item.meta.loading = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user