king
2022-10-02 2e271a6b02a2f82bc0e3a36e05c00731bad99358
src/menu/components/chart/chart-custom/index.jsx
@@ -10,7 +10,7 @@
import MKEmitter from '@/utils/events.js'
import asyncComponent from '@/utils/asyncComponent'
import asyncIconComponent from '@/utils/asyncIconComponent'
import { resetStyle } from '@/utils/utils-custom.js'
import { resetStyle, getTables } from '@/utils/utils-custom.js'
import Utils from '@/utils/utils.js'
import zhCN from '@/locales/zh-CN/model.js'
import enUS from '@/locales/en-US/model.js'
@@ -205,6 +205,10 @@
      card.errors.push({ level: 0, detail: '未设置上级组件!'})
    }
    
    if (card.errors.length === 0) {
      card.$tables = getTables(card)
    }
    this.setState({
      card: card
    })