From 5967f0b45c27b446206d247d501006a8bb5f65c5 Mon Sep 17 00:00:00 2001 From: xudan Date: Tue, 14 Oct 2025 15:36:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=20MapConverterModal?= =?UTF-8?q?=20=E7=BB=84=E4=BB=B6=E4=B8=AD=E7=9A=84=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=EF=BC=8C=E7=AE=80=E5=8C=96=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E7=9A=84=E5=A4=84=E7=90=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/modal/MapConverterModal.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/modal/MapConverterModal.vue b/src/components/modal/MapConverterModal.vue index 7389399..5d954b9 100644 --- a/src/components/modal/MapConverterModal.vue +++ b/src/components/modal/MapConverterModal.vue @@ -88,7 +88,7 @@ import { InboxOutlined } from '@ant-design/icons-vue'; import http from '@core/http'; import { message, type UploadChangeParam } from 'ant-design-vue'; -import { computed, reactive, ref, watch, type Ref } from 'vue'; +import { computed, reactive, type Ref, ref, watch } from 'vue'; type ConversionType = 'scene' | 'iray' | 'scene-to-smap'; @@ -345,9 +345,7 @@ const handleConvert = async () => { const blob = new Blob([smapContent], { type: 'application/json' }); revokeDownloadUrl(); downloadUrl.value = URL.createObjectURL(blob); - const outputFile = data.data?.output_file - ? data.data.output_file.split(/[/\\]/).pop() - : undefined; + const outputFile = data.data?.output_file ? data.data.output_file.split(/[/\\]/).pop() : undefined; downloadFilename.value = outputFile || 'updated.smap'; message.success('转换成功,已生成 SMAP 文件。'); }