fix
This commit is contained in:
@@ -297,9 +297,10 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
const setClothes = async (list:any)=>{
|
const setClothes = async (list:any)=>{
|
||||||
let clothesList:any = []
|
let clothesList:any = []
|
||||||
|
await nextTick()
|
||||||
for(let i = 0;i<list.length;i++){
|
for(let i = 0;i<list.length;i++){
|
||||||
detailData.selectDetail
|
detailData.selectDetail
|
||||||
let {scale,offset,priority,maskUrl,maskMinioUrl} = (detailDom.model as any).getSubmitData(list[i])
|
let {scale,offset,priority,maskUrl,maskMinioUrl} = await (detailDom.model as any).getSubmitData(list[i])
|
||||||
if(detailDom.canvasBox?.privewDetail)await (detailDom.canvasBox as any).privewDetail()
|
if(detailDom.canvasBox?.privewDetail)await (detailDom.canvasBox as any).privewDetail()
|
||||||
if(detailDom.detailRight?.privewDetail)await (detailDom.detailRight as any).privewDetail()
|
if(detailDom.detailRight?.privewDetail)await (detailDom.detailRight as any).privewDetail()
|
||||||
let gradient = null
|
let gradient = null
|
||||||
|
|||||||
@@ -214,9 +214,6 @@ const DesignDetail : Module<DesignDetail,RootState> = {
|
|||||||
for (let j = 0; j < data.clothes.length; j++) {
|
for (let j = 0; j < data.clothes.length; j++) {
|
||||||
const item = data.clothes[j];
|
const item = data.clothes[j];
|
||||||
if(!item.id)continue
|
if(!item.id)continue
|
||||||
if(item.id == state.selectDetail.id || state.selectDetail.newDetail?.sketch?.id == item.id){
|
|
||||||
|
|
||||||
}
|
|
||||||
let id_:any
|
let id_:any
|
||||||
if(state.currentDetailType != 'models'){
|
if(state.currentDetailType != 'models'){
|
||||||
if(data.clothes.length > 2){
|
if(data.clothes.length > 2){
|
||||||
@@ -240,7 +237,7 @@ const DesignDetail : Module<DesignDetail,RootState> = {
|
|||||||
img.src = state.frontBack.body.path;
|
img.src = state.frontBack.body.path;
|
||||||
img.onload = () => {
|
img.onload = () => {
|
||||||
let scale:any = el.parentNode.offsetWidth / img.width;
|
let scale:any = el.parentNode.offsetWidth / img.width;
|
||||||
if(state.selectDetail.newDetail?.sketch?.id && !state.selectDetail.id){
|
if(state.selectDetail?.newDetail?.sketch?.id && !state.selectDetail.id){
|
||||||
state.frontBack.front.push({id:state.selectDetail.newDetail?.sketch?.id})
|
state.frontBack.front.push({id:state.selectDetail.newDetail?.sketch?.id})
|
||||||
state.frontBack.back.push({id:state.selectDetail.newDetail?.sketch?.id})
|
state.frontBack.back.push({id:state.selectDetail.newDetail?.sketch?.id})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user