|
|
@@ -363,11 +363,13 @@ const handleIframeLoad = async (event: Event) => {
|
|
|
html = await api.getHTML(info.url)
|
|
|
}
|
|
|
catch (_e) {
|
|
|
+ message.info('getHTML 失败,尝试 getFile' + _e)
|
|
|
try {
|
|
|
const fd = await getFile(info.url)
|
|
|
if (fd?.data) html = new TextDecoder('utf-8').decode(new Uint8Array(fd.data))
|
|
|
}
|
|
|
catch (_e2) {
|
|
|
+ message.info('getFile 失败,尝试 getFile2' + _e2)
|
|
|
try {
|
|
|
const fd2 = await getFile2(info.url)
|
|
|
if (fd2?.data) html = new TextDecoder('utf-8').decode(new Uint8Array(fd2.data))
|