mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-11 01:12:49 +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 { tid } = location.query || '';
|
||||
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',
|
||||
showUploadList: false,
|
||||
@ -223,7 +223,7 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
|
||||
};
|
||||
|
||||
const handleReloadPage = () => {
|
||||
document.getElementById('previewPage')?.contentWindow.location.reload();
|
||||
(document.getElementById('previewPage') as any).contentWindow.location.reload();
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user