mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
perf: 编辑JSON兼容后端优化
This commit is contained in:
@@ -6,7 +6,7 @@ import { ChartEnum } from '@/enums/pageEnum'
|
||||
import { SavePageEnum } from '@/enums/editPageEnum'
|
||||
import { editToJsonInterval } from '@/settings/designSetting'
|
||||
|
||||
const { updateComponent } = useSync()
|
||||
const { updateComponent, dataSyncUpdate } = useSync()
|
||||
const chartEditStore = useChartEditStore()
|
||||
|
||||
// 侦听器更新
|
||||
@@ -15,6 +15,7 @@ const useSyncUpdateHandle = () => {
|
||||
let timer: any
|
||||
const updateFn = (e: any) => updateComponent(e!.detail, true, false)
|
||||
const syncData = async () => {
|
||||
dataSyncUpdate && (await dataSyncUpdate())
|
||||
dispatchEvent(new CustomEvent(SavePageEnum.CHART, { detail: chartEditStore.getStorageInfo }))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user