edit product生成失败导致sort异常
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user