修复连续创建项目bug

This commit is contained in:
X1627315083
2025-12-17 15:33:31 +08:00
parent 467ac9c24f
commit 5672307e33
3 changed files with 7 additions and 1 deletions

View File

@@ -1200,6 +1200,11 @@ export default defineComponent({
likeDesignCollectionList.value.forEach((likeItem:any,index:any)=>{
if(likeItem?.childList?.length > 0){
let index = likeItem.childList.findIndex((item:any)=>{return item.taskId == listItem})
likeItem.childList.forEach((item)=>{
if(item.sort > likeItem.childList[index].sort){
item.sort -= 1
}
})
likeItem.childList.splice(index,1)
}
})