feat:修复自定义组件获取数据问题

main
liu.shiyi 2 years ago
parent 19b9752a1d
commit 6b5a1af09c

@ -7,6 +7,7 @@
<el-table <el-table
:id="config.code" :id="config.code"
ref="table" ref="table"
:key="updateKey"
class="custom-table" class="custom-table"
height="100%" height="100%"
:stripe="config.customize.stripe" :stripe="config.customize.stripe"

@ -39,7 +39,7 @@ export default {
chartInit () { chartInit () {
let config = this.config let config = this.config
// key和code相等说明是一进来刷新调用list接口 // key和code相等说明是一进来刷新调用list接口
if (this.config.code === this.config.key || this.isPreview) { if (this.isPreview) {
// 改变样式 // 改变样式
config = this.changeStyle(config) ? this.changeStyle(config) : config config = this.changeStyle(config) ? this.changeStyle(config) : config
// 改变数据 // 改变数据

Loading…
Cancel
Save