Showing
1 changed file
with
3 additions
and
1 deletions
| ... | ... | @@ -44,6 +44,7 @@ export const useSyncRemote = () => { |
| 44 | 44 | * @returns |
| 45 | 45 | */ |
| 46 | 46 | const updateStoreInfo = (projectData: DateViewConfigurationInfoType) => { |
| 47 | + console.log(projectData) | |
| 47 | 48 | projectInfoStore.setProjectInfo(projectData) |
| 48 | 49 | } |
| 49 | 50 | |
| ... | ... | @@ -56,9 +57,9 @@ export const useSyncRemote = () => { |
| 56 | 57 | try { |
| 57 | 58 | const id = fetchRouteParamsLocation() |
| 58 | 59 | const res = await getDataView(id) |
| 60 | + updateStoreInfo(res) | |
| 59 | 61 | // 更新全局数据 |
| 60 | 62 | await updateComponent(JSONParse(res.dataViewContent.content)) |
| 61 | - updateStoreInfo(res) | |
| 62 | 63 | setTimeout(() => { |
| 63 | 64 | projectInfoStore.setSaveStatus(SyncEnum.SUCCESS) |
| 64 | 65 | }, 1000) |
| ... | ... | @@ -101,6 +102,7 @@ export const useSyncRemote = () => { |
| 101 | 102 | |
| 102 | 103 | // 保存预览图 |
| 103 | 104 | if (uploadRes) { |
| 105 | + console.log(projectInfoStore.getProjectInfo) | |
| 104 | 106 | await saveDataViewList({ |
| 105 | 107 | name: dataViewName, |
| 106 | 108 | organizationId, | ... | ... |