jinlin
2024-01-10 cdf29a8f6fb9990f82ccc1d3f47bfba48cfaf4fc
web/packages/components/zt-select/src/zt-select.vue
@@ -55,7 +55,6 @@
    mounted() {
      // console.log(this.datas, 'this.datas in zt-select')
      if (this.datas !== undefined && this.datas.length > 0) {
        // console.log('use datas')
        this.setDataList(this.datas)
      } else if (this.url !== undefined) { // 指定了url
        // console.log('use url')
@@ -81,6 +80,7 @@
      setDataList(data) { // 设置树的值
        if (Array.isArray(data)) {
          this.dataList = data
          console.log(this.dataList,"setDataList")
        } else {
          this.dataList = data.rows
        }