fix: 修复图表group刷新按钮无效的问题

This commit is contained in:
chenjinsong
2022-04-29 15:22:10 +08:00
parent 199449b5b0
commit e2d545f849

View File

@@ -12,6 +12,7 @@
<script>
import chartMixin from '@/views/charts/charts/chart-mixin'
import _ from 'lodash'
import { ref } from 'vue'
export default {
name: 'ChartGroup',
@@ -22,11 +23,15 @@ export default {
},
methods: {
reload () {
this.dataList = _.cloneDeep(this.dataList)
const t = _.cloneDeep(this.dataList)
this.dataList = []
this.$nextTick(() => {
this.dataList = t
})
}
},
setup (props) {
const dataList = [...props.chartInfo.children]
const dataList = ref([...props.chartInfo.children])
return {
dataList
}