修复直接在印花preview后印花overall丢失
This commit is contained in:
@@ -275,7 +275,6 @@ export default defineComponent({
|
||||
const setRevocation = async ()=>{//设置撤销
|
||||
let itemDetail = JSON.parse(JSON.stringify(detailData.designDetail))
|
||||
let revocation:any = JSON.parse((await KeyValueDB.get("revocation") as any) || 'null')
|
||||
console.log(itemDetail,revocation,'=========')
|
||||
if(!revocation)revocation = []
|
||||
// let oppositeRevocation = JSON.parse((await KeyValueDB.get("oppositeRevocation") as any))
|
||||
// if(revocation?.[0]?.designItemId != itemDetail.designItemId || revocation?.[0]?.designItemId == undefined){
|
||||
@@ -291,7 +290,6 @@ export default defineComponent({
|
||||
const revocation = async ()=>{//撤回
|
||||
let oppositeRevocation = JSON.parse((await KeyValueDB.get("oppositeRevocation") as any) || 'null')
|
||||
let revocation = JSON.parse((await KeyValueDB.get("revocation") as any) || 'null')
|
||||
console.log(oppositeRevocation,revocation,'=========')
|
||||
if(revocation.length <= 1)return
|
||||
oppositeRevocation.push(revocation[revocation.length-1])
|
||||
revocation.splice(revocation.length-1,1)
|
||||
@@ -448,7 +446,6 @@ export default defineComponent({
|
||||
let value = {
|
||||
currentType : JSON.parse(JSON.stringify(detailData.currentDetailType)),
|
||||
rv:rv,
|
||||
fun:setRevocation
|
||||
}
|
||||
if(detailData?.designDetail?.newModel)detailData.designDetail.oldModel = JSON.parse(JSON.stringify(detailData.designDetail.newModel))
|
||||
|
||||
@@ -607,7 +604,6 @@ export default defineComponent({
|
||||
detailDom.canvasBox.editFront(str)
|
||||
if(str == 'canvasEditor'){
|
||||
let otherData = await updateOtherLayers('single')
|
||||
console.log(otherData,'============')
|
||||
await detailDom.canvasBox.updateOtherLayers(otherData)
|
||||
}
|
||||
detailData.isEditPattern.value = str
|
||||
|
||||
Reference in New Issue
Block a user