|
@@ -208,11 +208,11 @@ function takePictures() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- clientStore.ipc.removeAllListeners(icpList.utils.createMainImage);
|
|
|
|
|
- clientStore.ipc.send(icpList.utils.createMainImage,{
|
|
|
|
|
|
|
+ clientStore.ipc.removeAllListeners(icpList.takePhoto.createMainImage);
|
|
|
|
|
+ clientStore.ipc.send(icpList.takePhoto.createMainImage,{
|
|
|
file_path:result.data.file_path
|
|
file_path:result.data.file_path
|
|
|
});
|
|
});
|
|
|
- clientStore.ipc.on(icpList.utils.createMainImage, async (event, result) => {
|
|
|
|
|
|
|
+ clientStore.ipc.on(icpList.takePhoto.createMainImage, async (event, result) => {
|
|
|
console.log('icpList.utils.createMainImage');
|
|
console.log('icpList.utils.createMainImage');
|
|
|
|
|
|
|
|
if(result.code === 0 && result.data?.main_out_path){
|
|
if(result.code === 0 && result.data?.main_out_path){
|
|
@@ -221,8 +221,8 @@ function takePictures() {
|
|
|
step.value = 2
|
|
step.value = 2
|
|
|
loading.value = false;
|
|
loading.value = false;
|
|
|
}else if(result.msg){
|
|
}else if(result.msg){
|
|
|
|
|
+ if(result.code !== 0) ElMessage.error(result.msg)
|
|
|
|
|
|
|
|
- ElMessage.error(result.msg)
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -231,7 +231,7 @@ function takePictures() {
|
|
|
|
|
|
|
|
}else if(result.msg){
|
|
}else if(result.msg){
|
|
|
|
|
|
|
|
- ElMessage.error(result.msg)
|
|
|
|
|
|
|
+ if(result.code !== 0) ElMessage.error(result.msg)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
})
|
|
})
|