mirror of
https://gitee.com/dromara/go-view.git
synced 2025-10-14 14:32:10 +08:00
Pre Merge pull request !102 from fankeke007/N/A
This commit is contained in:
commit
23a4eb0485
@ -224,6 +224,9 @@ export const useSync = () => {
|
|||||||
|
|
||||||
// * 数据获取
|
// * 数据获取
|
||||||
const dataSyncFetch = async () => {
|
const dataSyncFetch = async () => {
|
||||||
|
// FIX:重新执行dataSyncFetch需清空chartEditStore.componentList,否则会导致图层重复
|
||||||
|
// 切换语言等操作会导致重新执行 dataSyncFetch,此时pinia中并未清空chartEditStore.componentList,导致图层重复
|
||||||
|
chartEditStore.componentList = []
|
||||||
chartEditStore.setEditCanvas(EditCanvasTypeEnum.SAVE_STATUS, SyncEnum.START)
|
chartEditStore.setEditCanvas(EditCanvasTypeEnum.SAVE_STATUS, SyncEnum.START)
|
||||||
try {
|
try {
|
||||||
const res = await fetchProjectApi({ projectId: fetchRouteParamsLocation() }) as unknown as MyResponseType
|
const res = await fetchProjectApi({ projectId: fetchRouteParamsLocation() }) as unknown as MyResponseType
|
||||||
|
Loading…
x
Reference in New Issue
Block a user