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