1
李凌
5 days ago 349c48e168b9f2580334422228acde7d1b21bede
src/components/Transform/contract-futrue/index.vue
@@ -31,10 +31,17 @@
    }
  },
  watch: {
    initFutrue: {
      handler(val) {
        console.log("initFutrue", val);
    'initFutrue.para': {
      handler(para) {
        if (para && para.length > 0) {
          if (!this.active) {
            this.active = para[0].para_id || ''
            this.$emit('paraId', { id: this.active, index: 0 })
          }
        }
      },
      deep: true,
      immediate: true
    }
  },
  data() {
@@ -44,7 +51,7 @@
    }
  },
  created() {
    if (this.initFutrue.para.length > 0) {
    if (this.initFutrue.para && this.initFutrue.para.length > 0) {
      this.active = this.initFutrue.para[0].para_id || ''
      this.$emit('paraId', { id: this.active, index: 0 })
    }