Commit 2f8d48fb by caoyanzhi

解决标签拖动之后level没变的bug

parent 0b6d86f2
......@@ -65,6 +65,7 @@ export default {
dragTag(data) {
let { fromTagsGroupIndex, fromTagIndex, toTagsGroupIndex } = { ...data };
let tagData = this.selectedTagsData[fromTagsGroupIndex].splice(fromTagIndex, 1)[0];
tagData.level = toTagsGroupIndex;
this.selectedTagsData[toTagsGroupIndex].push(tagData);
},
// 添加一个标签组,最多只能有3个标签组
......
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