瀏覽代碼

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

liu.shiyi 2 年之前
父節點
當前提交
6b5a1af09c

+ 1 - 0
data-room-ui/packages/BasicComponents/Tables/index.vue

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

+ 1 - 1
data-room-ui/packages/js/mixins/commonMixins.js

@@ -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
         // 改变数据