前端工作总结266-数据绑定逻辑处理

    },
    confirmAssociation() {
      if(this.selected!="") {
        putAction(this.url.put + '/' + this.task_id + '/bound', {content_id: this.selected}).then(res => {
          this.$message.success("绑定成功");
          this.$emit("ok")
          this.$refs["dialog"].close();
        })
      }else{
        this.$message.success("数据没有绑定成功");
        this.$refs["dialog"].close();
      }
    }
  }

posted @ 2022-09-16 22:44  前端导师歌谣  阅读(11)  评论(0)    收藏  举报