mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
perf: 胶囊图增加cloneDeep防止多个互相影响
This commit is contained in:
parent
1b9a3f6f5b
commit
b95cf946a8
@ -56,6 +56,7 @@ import { onMounted, watch, reactive, PropType } from 'vue'
|
|||||||
import { useChartDataFetch } from '@/hooks'
|
import { useChartDataFetch } from '@/hooks'
|
||||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||||
import config, { option } from './config'
|
import config, { option } from './config'
|
||||||
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
|
|
||||||
type DataProps = {
|
type DataProps = {
|
||||||
name: string | number
|
name: string | number
|
||||||
@ -116,7 +117,7 @@ const calcData = (data: any) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const mergeConfig = (data: any) => {
|
const mergeConfig = (data: any) => {
|
||||||
state.mergedConfig = data || {}
|
state.mergedConfig = cloneDeep(data || {})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 数据解析
|
// 数据解析
|
||||||
|
Loading…
x
Reference in New Issue
Block a user