mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-11 01:06:32 +00:00
update: preview open the ui project
This commit is contained in:
parent
59bd106c94
commit
7914f041ed
@ -46,12 +46,15 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
|
||||
const toPreview = () => {
|
||||
localStorage.setItem('pointData', JSON.stringify(pointData));
|
||||
savePreview();
|
||||
setTimeout(() => {
|
||||
window.open(
|
||||
isDev
|
||||
? `/preview?tid=${props.location.query.tid}`
|
||||
: `/preview?tid=${props.location.query.tid}`,
|
||||
);
|
||||
// setTimeout(() => {
|
||||
// window.open(
|
||||
// isDev
|
||||
// ? `/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);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user