|
@@ -44,7 +44,8 @@ class ImageMattingController extends Controller {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
const filePaths = dialog.showOpenDialogSync(dialogParams)
|
|
const filePaths = dialog.showOpenDialogSync(dialogParams)
|
|
|
- if(!filePaths[0]){
|
|
|
|
|
|
|
+ Log.info('filePaths:::::::::'+filePaths);
|
|
|
|
|
+ if(!filePaths || !filePaths[0]){
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
Log.info(filePaths);
|
|
Log.info(filePaths);
|
|
@@ -82,6 +83,7 @@ class ImageMattingController extends Controller {
|
|
|
if(img.data){
|
|
if(img.data){
|
|
|
return img.data
|
|
return img.data
|
|
|
}
|
|
}
|
|
|
|
|
+ return false;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
return res.data
|
|
return res.data
|