diff --git a/src/views/Workshop/product.vue b/src/views/Workshop/product.vue index 5618931..7081801 100644 --- a/src/views/Workshop/product.vue +++ b/src/views/Workshop/product.vue @@ -38,7 +38,7 @@ const startGenerate = ()=>{ let value = { customerId:generateStore.customerId, visitRecordId:generateStore.visitRecordId, - styleId:generateStore.style.id, + styleId:generateStore.styleId, // customerPhotoId:null, // modelPhotoId:null, // prompt:null, diff --git a/src/views/Workshop/selectStyle.vue b/src/views/Workshop/selectStyle.vue index 1af6171..e29c401 100644 --- a/src/views/Workshop/selectStyle.vue +++ b/src/views/Workshop/selectStyle.vue @@ -92,6 +92,7 @@ onMounted(()=>{ emit('view-type', 1) // if(!data.styleList[0]?.id)getRequestOutfitList(0) if(getGenerateTime)clearTimeout(getGenerateTime) + console.log(data.styleList) if(!data.styleList[0]?.taskId){ requestOutfit({num:4,index:0}) }else if(data.styleList.filter((item)=>item?.status != 'SUCCEEDED').length > 0){ @@ -101,7 +102,6 @@ onMounted(()=>{ }) onUnmounted(()=>{ if(getGenerateTime)clearTimeout(getGenerateTime) - generateStore.clearProductData() }) defineExpose({}) const { styleList, select } = toRefs(data);