mirror of
https://gitee.com/dromara/go-view.git
synced 2026-05-12 00:00:01 +08:00
perf: 优化公共接口更新数据的逻辑
This commit is contained in:
@@ -119,7 +119,10 @@ export const useChartDataFetch = (
|
|||||||
|
|
||||||
if (isPreview()) {
|
if (isPreview()) {
|
||||||
targetComponent.request.requestDataType === RequestDataTypeEnum.Pond
|
targetComponent.request.requestDataType === RequestDataTypeEnum.Pond
|
||||||
? addGlobalDataInterface(targetComponent, useChartEditStore, updateCallback || echartsUpdateHandle)
|
? addGlobalDataInterface(targetComponent, useChartEditStore, (newData: any) => {
|
||||||
|
echartsUpdateHandle(newData)
|
||||||
|
if (updateCallback) updateCallback(newData)
|
||||||
|
})
|
||||||
: requestIntervalFn()
|
: requestIntervalFn()
|
||||||
} else {
|
} else {
|
||||||
requestIntervalFn()
|
requestIntervalFn()
|
||||||
|
|||||||
Reference in New Issue
Block a user