Commit f1aefb60 by zhaochengxiang

bug fix

parent 1fa70f6a
......@@ -11,16 +11,16 @@ const FC = (props) => {
const url = getQueryParam('downloadurl', props.location?.search);
React.useEffect(() => {
axios.request({
method: 'GET',
url,
responseType: 'blob'
}).then((resp) => {
var iframe = document.getElementById('myIframe');
setTimeout(() => {
iframe.contentWindow.postMessage({ data: resp.data, type: "preview.excel.file" }, "*");
}, 5000)
})
axios.request({
method: 'GET',
url,
responseType: 'blob'
}).then((resp) => {
var iframe = document.getElementById('myIframe');
setTimeout(() => {
iframe.contentWindow.postMessage({ data: resp.data, type: "preview.excel.file" }, "*");
}, 5000)
})
}, [])
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment