From adfa0f8c62bfb621cd4bfa1f359b9013c8e3349b Mon Sep 17 00:00:00 2001 From: Helloworld <1326521+LYZhelloworld@users.noreply.github.com> Date: Sat, 4 Jun 2022 17:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E2=80=9C=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E5=88=B6=E4=BD=9C=E5=99=A8=E4=BB=85=E5=A1=AB=E5=86=99=E5=85=B3?= =?UTF-8?q?=E5=8D=A1=E5=90=8D=EF=BC=8C=E8=80=8C=E4=B8=8D=E5=A1=AB=E5=86=99?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E7=9A=84=E5=86=85=E5=AE=B9=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E7=82=B9=E5=87=BB=20=E4=B8=8B=E8=BD=BD=20JSON=20=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=8F=8D=E5=BA=94=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/CopilotDesinger/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/CopilotDesinger/index.js b/tools/CopilotDesinger/index.js index 28be97ded6..690be407cf 100644 --- a/tools/CopilotDesinger/index.js +++ b/tools/CopilotDesinger/index.js @@ -277,7 +277,7 @@ $(document).ready(() => { $('#download_json').click(() => { const result = JSON.stringify(data, null, 4); const file = new Blob([result], { type: 'application/json' }); - const fileName = data.stage_name + '_' + data.opers.map(o => o.name).join('+') + '.json'; + const fileName = data.stage_name + '_' + (data.opers?.map(o => o.name).join('+') ?? '') + '.json'; const url = window.URL.createObjectURL(file); const link = document.createElement('a'); link.href = url;