Update Container.js

保护机制
This commit is contained in:
MrXujiang 2020-08-31 15:21:29 +08:00 committed by GitHub
parent 79a23953dd
commit 07d42ee133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,11 +99,6 @@ const Container = memo(props => {
});
return arr;
}, []);
// 存储用户唯一信息
if (!localStorage.getItem('uid') || !sessionStorage.getItem('sid')) {
localStorage.setItem('uid', uuid(8, 10));
sessionStorage.setItem('sid', uuid(5, 10));
}
return (
<div className={styles.editorWrap}>