前端优化方案
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