mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2026-03-07 17:07:04 +00:00
update
This commit is contained in:
parent
cf51550d87
commit
2ad7172ea5
@ -41,7 +41,7 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
|
||||
window.open(
|
||||
isDev
|
||||
? `/preview?tid=${props.location.query.tid}`
|
||||
: `http://io.nainor.com/h5_plus/preview?tid=${props.location.query.tid}`,
|
||||
: `/preview?tid=${props.location.query.tid}`,
|
||||
);
|
||||
}, 600);
|
||||
};
|
||||
@ -114,7 +114,10 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
|
||||
const newPage = () => {
|
||||
let prev = localStorage.getItem('myH5');
|
||||
try {
|
||||
localStorage.setItem('myH5', JSON.stringify(prev ? [...prev, pointData] : [pointData]));
|
||||
localStorage.setItem(
|
||||
'myH5',
|
||||
JSON.stringify(prev ? [...Array.from(prev), pointData] : [pointData]),
|
||||
);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user