|
@@ -105,7 +105,7 @@ const handleIframeLoad = async (event: Event) => {
|
|
try {
|
|
try {
|
|
// 等待iframe完全加载
|
|
// 等待iframe完全加载
|
|
await nextTick()
|
|
await nextTick()
|
|
- setTimeout(() => {
|
|
|
|
|
|
+ setTimeout(async () => {
|
|
// 检查iframe是否可访问(同源检查)
|
|
// 检查iframe是否可访问(同源检查)
|
|
if (iframe.contentWindow && iframe.contentDocument) {
|
|
if (iframe.contentWindow && iframe.contentDocument) {
|
|
const iframeDoc = iframe.contentDocument
|
|
const iframeDoc = iframe.contentDocument
|