|
@@ -642,8 +642,8 @@ const getLastPhotoRecord = async ()=>{
|
|
|
console.log(runAction.value)
|
|
console.log(runAction.value)
|
|
|
clientStore.ipc.removeAllListeners(icpList.takePhoto.getLastPhotoRecord);
|
|
clientStore.ipc.removeAllListeners(icpList.takePhoto.getLastPhotoRecord);
|
|
|
if(result.code === 0){
|
|
if(result.code === 0){
|
|
|
- if(lastPhoto.value.image_path){
|
|
|
|
|
- if( lastPhoto.value.image_path == result.data.image_path) return;
|
|
|
|
|
|
|
+ if(lastPhoto.value?.image_path){
|
|
|
|
|
+ if( lastPhoto.value?.image_path == result.data?.image_path) return;
|
|
|
|
|
|
|
|
if(runAction.value.goods_art_no === result.data.goods_art_no){
|
|
if(runAction.value.goods_art_no === result.data.goods_art_no){
|
|
|
showlastPhoto.value = true
|
|
showlastPhoto.value = true
|