CN-56 perf: entity详情布局

This commit is contained in:
chenjinsong
2021-08-02 13:22:15 +08:00
parent 6e780dd447
commit 6e07d7b269
7 changed files with 53 additions and 13 deletions

View File

@@ -632,7 +632,7 @@ export default {
immediate: true,
deep: true,
handler (n, o) {
if (n) {
if (n && o) {
this.$nextTick(() => {
this.initChart()
})
@@ -643,7 +643,6 @@ export default {
setup (props) {
const chartInfo = JSON.parse(JSON.stringify(props.chart))
chartInfo.category = getTypeCategory(props.chart.type)
chartInfo.params = chartInfo.params ? JSON.parse(chartInfo.params) : null
return {
chartInfo,
layoutConstant,