@@ -7,6 +7,7 @@
<el-table
:id="config.code"
ref="table"
+ :key="updateKey"
class="custom-table"
height="100%"
:stripe="config.customize.stripe"
@@ -39,7 +39,7 @@ export default {
chartInit () {
let config = this.config
// key和code相等,说明是一进来刷新,调用list接口
- if (this.config.code === this.config.key || this.isPreview) {
+ if (this.isPreview) {
// 改变样式
config = this.changeStyle(config) ? this.changeStyle(config) : config
// 改变数据