|
|
@@ -291,7 +291,7 @@
|
|
|
<div class="message-header">
|
|
|
<span>处理进度</span>
|
|
|
<div class="flex right" style="gap:8px; align-items:center;">
|
|
|
-<!-- <el-button type="text" @click="openOutputDir" v-log="{ describe: { action: '点击打开输出目录' } }">打开目录</el-button>-->
|
|
|
+ <el-button type="text" @click="openOutputDir" v-log="{ describe: { action: '点击打开输出目录' } }">打开目录</el-button>
|
|
|
<el-button type="text" @click="showMessageHistory = !showMessageHistory" v-log="{ describe: { action: '点击查看进度详情' } }">
|
|
|
{{ showMessageHistory ? '收起' : '查看详情' }}
|
|
|
</el-button>
|
|
|
@@ -721,12 +721,15 @@ const handleUploadGoodsProgressMessage = (data: any) => {
|
|
|
// 打开输出目录:appConfig.appPath + '/build/extraResources/py/output'
|
|
|
const openOutputDir = () => {
|
|
|
try {
|
|
|
- const appPath = useConfigInfoStore?.appConfig?.appPath || ''
|
|
|
- if (!appPath) {
|
|
|
+
|
|
|
+ const pyPath = useConfigInfoStore?.appConfig?.pyPath || ''
|
|
|
+ if (!pyPath) {
|
|
|
ElMessage.error('未获取到应用目录 appPath')
|
|
|
return
|
|
|
}
|
|
|
- const fullPath = `${appPath}/build/extraResources/py/output`
|
|
|
+ console.log(pyPath);
|
|
|
+ const fullPath = `${pyPath}\\output`
|
|
|
+ console.log(fullPath);
|
|
|
clientStore.ipc.removeAllListeners(icpList.utils.shellFun);
|
|
|
clientStore.ipc.send(icpList.utils.shellFun, {
|
|
|
action: 'openPath',
|