This commit is contained in:
X1627315083
2026-01-16 10:34:15 +08:00
parent 882740592c
commit 83226f006c
3 changed files with 24 additions and 16 deletions

View File

@@ -619,13 +619,13 @@ export default defineComponent({
}
}
if(detailData.currentDetailType == 'print'){
otherData.printObject = detailData.selectDetail.newDetail?.print?.length>0?{prints:detailData.selectDetail.newDetail?.print}:detailData.selectDetail.printObject || null
otherData.printObject = {prints:detailData.selectDetail.newDetail?.print}
}
if(detailData.currentDetailType == 'element'){
otherData.trims = detailData.selectDetail.newDetail?.element?.length>0?detailData.selectDetail.newDetail?.element:detailData.selectDetail.trims || null
otherData.trims = detailData.selectDetail.newDetail?.element
}
}
console.log(otherData,'=======',detailData.selectDetail)
console.log(JSON.parse(JSON.stringify(otherData)),'=======',JSON.parse(JSON.stringify(detailData.selectDetail)))
return otherData
}
const uploadElement = async ()=>{//取出画布数据更新到detail