xsLab icon indicating copy to clipboard operation
xsLab copied to clipboard

保存存在问题

Open LETEfly opened this issue 3 years ago • 0 comments

数据相关信息如“指标名称”修改后,然后切换到另一个组件后再点击保存,这时候指标名称的修改没有生效; 看了下代码逻辑发现,在保存时只会对当前节点执行update操作,望优化。

//xslab-editor\src\components\editor\mtOptions.vue
saveDataSource () {
  let that = this
  if (!that.$parent.$refs.xsc.activeNode.id) {
    this.$emit('saveOption')
  } else {
    that.$parent.$refs.xsc.update(that.$parent.$refs.xsc.activeNode.id).then(warnData => {
      let warnMsgStr = ''
      ...
    }).catch(errDatas => {
      let errMsgStr = ''
      ...
  }
}

LETEfly avatar Sep 29 '22 05:09 LETEfly