This commit is contained in:
sjl
2025-10-23 14:42:07 +08:00
5 changed files with 81 additions and 54 deletions

View File

@@ -184,10 +184,9 @@
v-if="progressData.status === 'success'"
type="primary"
title="点击打开目录"
:href="progressData.message"
@click="openDownloadLocation"
>
{{ progressData.message }}
{{ filePath }}
</el-link>
</el-row>
<el-progress
@@ -692,6 +691,7 @@ const exportPlan = async () => {
}
const exportPlanCheckResultData = async (selectedListIds: string[]) => {
filePath.value = ''
const params = {
id: planFormContent.value.id,
report: downloadReport.value,
@@ -773,10 +773,6 @@ const openDownloadLocation = () => {
if (filePath.value) {
// 打开指定文件所在的目录,并选中该文件
Renderer.shell.showItemInFolder(filePath.value)
} else {
// 使用默认下载路径
const downloadPath = Renderer.app.getPath('downloads')
Renderer.shell.openPath(downloadPath)
}
} else {
ElMessage.warning('当前运行环境不支持,请复制路径自行打开')