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