前端优化方案

建议 2 1388
哒哒哒
哒哒哒 2021-08-26
tempKey: -666666 // 临时key, 用于解决tree半选中状态项不能传给后台接口问题. # 待优化 优化方案: 源代码 // 'menuIdList': [].concat(this.$refs.menuListTree.getCheckedKeys(), [this.tempKey], this.$refs.menuListTree.getHalfCheckedKeys()) 优化代码 'menuIdList': [].concat(this.$refs.menuListTree.getCheckedKeys()) 这样优化后就不要存储-666666值了
本帖标签: renren-fast
回帖
  • 好的
    0 回复
  • gozv
    2021-11-18
    @Mark renren-fast这个是免费开源可以商用的吗
    0 回复