Commit 9369d17e75aea1d2d42568021017f71edaac1282
1 parent
8cd50484
perf(src/views/share): 优化当大屏切换到第二页时,点击保存后,分享预览的时候显示的是保存时的分页数据,默认应该显示第一页
Showing
1 changed file
with
1 additions
and
0 deletions
| @@ -109,6 +109,7 @@ const getSharePageContentData = async () => { | @@ -109,6 +109,7 @@ const getSharePageContentData = async () => { | ||
| 109 | // chartEditStore.requestGlobalConfig = requestGlobalConfig | 109 | // chartEditStore.requestGlobalConfig = requestGlobalConfig |
| 110 | // chartEditStore.componentList = componentList | 110 | // chartEditStore.componentList = componentList |
| 111 | chartEditStore.setPageConfig(content.pageConfig) | 111 | chartEditStore.setPageConfig(content.pageConfig) |
| 112 | + chartEditStore.setCurrentPageSelectId(content.pageConfig.pageList[0].id) | ||
| 112 | // handleRegisterComponent(componentList) | 113 | // handleRegisterComponent(componentList) |
| 113 | content.pageConfig.pageList.forEach(pageItem=>{ | 114 | content.pageConfig.pageList.forEach(pageItem=>{ |
| 114 | handleRegisterComponent(pageItem.componentList) | 115 | handleRegisterComponent(pageItem.componentList) |