|
@@ -879,8 +879,8 @@ const handleSegmentProgressMessage = (data: any) => {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
updateProgressStep('segment_progress', data.progress)
|
|
updateProgressStep('segment_progress', data.progress)
|
|
|
- if(data.progress?.status === '处理完成'){
|
|
|
|
|
- // openOutputDir()
|
|
|
|
|
|
|
+ if(data.progress?.folder){
|
|
|
|
|
+ openOutputDir(data.progress?.folder)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -955,15 +955,20 @@ const handleUploadGoodsProgressMessage = (data: any) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 打开输出目录:appConfig.appPath + '/build/extraResources/py/output'
|
|
// 打开输出目录:appConfig.appPath + '/build/extraResources/py/output'
|
|
|
-const openOutputDir = () => {
|
|
|
|
|
|
|
+const openOutputDir = (path) => {
|
|
|
try {
|
|
try {
|
|
|
-
|
|
|
|
|
- const pyPath = useConfigInfoStore?.appConfig?.pyPath || ''
|
|
|
|
|
- if (!pyPath) {
|
|
|
|
|
- ElMessage.error('未获取到应用目录 appPath')
|
|
|
|
|
- return
|
|
|
|
|
|
|
+ let fullPath = ''
|
|
|
|
|
+ if(path){
|
|
|
|
|
+ fullPath = path
|
|
|
|
|
+ }else{
|
|
|
|
|
+
|
|
|
|
|
+ const appPath = useConfigInfoStore?.appConfig?.appPath || ''
|
|
|
|
|
+ if (!appPath) {
|
|
|
|
|
+ ElMessage.error('未获取到应用目录 appPath')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ fullPath = `${pyPath}\\output`
|
|
|
}
|
|
}
|
|
|
- const fullPath = `${pyPath}\\output`
|
|
|
|
|
clientStore.ipc.removeAllListeners(icpList.utils.shellFun);
|
|
clientStore.ipc.removeAllListeners(icpList.utils.shellFun);
|
|
|
clientStore.ipc.send(icpList.utils.shellFun, {
|
|
clientStore.ipc.send(icpList.utils.shellFun, {
|
|
|
action: 'openPath',
|
|
action: 'openPath',
|