mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-12 10:12:51 +00:00
fix: preview bug
This commit is contained in:
parent
7914f041ed
commit
ea92ac61ea
@ -69,7 +69,7 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
|
|||||||
const content = () => {
|
const content = () => {
|
||||||
const { tid } = location.query || '';
|
const { tid } = location.query || '';
|
||||||
return (
|
return (
|
||||||
<QRCode value={`${window.location.protocol}//${window.location.host}/preview?tid=${tid}`} />
|
<QRCode value={`${window.location.protocol}//http://localhost:8008/preview?tid=${props.location.query.tid}&pointData=${JSON.stringify(pointData)}`} />
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
|
|||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const uploadprops = useMemo(
|
const uploadprops = useMemo<any>(
|
||||||
() => ({
|
() => ({
|
||||||
name: 'file',
|
name: 'file',
|
||||||
showUploadList: false,
|
showUploadList: false,
|
||||||
@ -223,7 +223,7 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleReloadPage = () => {
|
const handleReloadPage = () => {
|
||||||
document.getElementById('previewPage')?.contentWindow.location.reload();
|
(document.getElementById('previewPage') as any).contentWindow.location.reload();
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user