Commit 0efa4e69 by caoyanzhi

修复删除标签组导致的一个bug

parent 378f7f03
......@@ -80,6 +80,9 @@ export default {
delTagsGroup(data) {
this.tagsGroupRelation.splice(data.tagsGroupIndex === this.selectedTagsData.length - 1 ? data.tagsGroupIndex - 1 : data.tagsGroupIndex, 1);
this.selectedTagsData.splice(data.tagsGroupIndex, 1);
this.selectedTagsData.forEach((group, index) => {
group.forEach(tag => tag.level = index);
});
this.checkTagsGroup({ tagsGroupIndex: 0 });
},
// 添加标签
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment