fix: useEffect

This commit is contained in:
DiamondThree
2022-12-20 15:29:24 +08:00
parent 2bf44326f3
commit f2210bbe79
9 changed files with 91 additions and 72 deletions
@@ -141,7 +141,7 @@ export const WorkSpaceSliderBar = () => {
</Link>
<StyledNewPageButton
onClick={async () => {
const pageId = await createPage();
const pageId = await createPage?.current?.();
console.log('pageID', pageId);
if (pageId) {
goToPage(pageId);