修复detail操作按钮集中左上角
This commit is contained in:
@@ -28,7 +28,21 @@ const DesignDetail : Module<DesignDetail,RootState> = {
|
||||
currentPrintElement:null,
|
||||
},
|
||||
mutations:{
|
||||
clearDetailData(state){
|
||||
state.designDetail = null
|
||||
state.designPreviewData = {}
|
||||
state.frontBack = {
|
||||
front:[],
|
||||
back:[],
|
||||
body:{},
|
||||
}
|
||||
state.selectDetail = null
|
||||
state.printZIndex = -1
|
||||
state.currentDetailType = ''
|
||||
state.currentPrintElement = null
|
||||
},
|
||||
setDesignDetail(state,data){
|
||||
console.log(data)
|
||||
if(data.others.length > 0 && data.others[0].type == "Body"){
|
||||
state.frontBack.body = data.others[0]
|
||||
}
|
||||
@@ -74,7 +88,6 @@ const DesignDetail : Module<DesignDetail,RootState> = {
|
||||
state.frontBack.back = back
|
||||
},
|
||||
updataDetailItem(state,data){
|
||||
console.log(data)
|
||||
state.designDetail.clothes.forEach((item:any) => {
|
||||
if(item.id == state.selectDetail.id){
|
||||
for (const key in data) {
|
||||
|
||||
Reference in New Issue
Block a user