|
@@ -1506,7 +1506,8 @@ const handleRefreshPage = () => {
|
|
iframe.src = originalSrc
|
|
iframe.src = originalSrc
|
|
console.log(`刷新iframe ${i + 1}:`, originalSrc)
|
|
console.log(`刷新iframe ${i + 1}:`, originalSrc)
|
|
refreshedCount++
|
|
refreshedCount++
|
|
- } else if (iframe.srcdoc) {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if (iframe.srcdoc) {
|
|
// srcdoc场景下,重新赋值srcdoc内容
|
|
// srcdoc场景下,重新赋值srcdoc内容
|
|
const originalSrcdoc = iframe.srcdoc
|
|
const originalSrcdoc = iframe.srcdoc
|
|
iframe.srcdoc = ''
|
|
iframe.srcdoc = ''
|
|
@@ -1516,6 +1517,7 @@ const handleRefreshPage = () => {
|
|
}, 50)
|
|
}, 50)
|
|
refreshedCount++
|
|
refreshedCount++
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
|
|
if (refreshedCount > 0) {
|
|
if (refreshedCount > 0) {
|
|
message.success(`刷新完成`)
|
|
message.success(`刷新完成`)
|