mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-12 10:12:51 +00:00
Merge pull request #126 from mokinzhao/master
update: preview open the ui project
This commit is contained in:
commit
35ed33826f
@ -46,12 +46,15 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
|
|||||||
const toPreview = () => {
|
const toPreview = () => {
|
||||||
localStorage.setItem('pointData', JSON.stringify(pointData));
|
localStorage.setItem('pointData', JSON.stringify(pointData));
|
||||||
savePreview();
|
savePreview();
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
window.open(
|
// window.open(
|
||||||
isDev
|
// isDev
|
||||||
? `/preview?tid=${props.location.query.tid}`
|
// ? `/preview?tid=${props.location.query.tid}`
|
||||||
: `/preview?tid=${props.location.query.tid}`,
|
// : `/preview?tid=${props.location.query.tid}`,
|
||||||
);
|
// );
|
||||||
|
// }, 600);
|
||||||
|
setTimeout(() => {
|
||||||
|
window.open(`http://localhost:8008/preview?tid=${props.location.query.tid}&pointData=${JSON.stringify(pointData)}`);
|
||||||
}, 600);
|
}, 600);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user