mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
修复“作业制作器仅填写关卡名,而不填写其他的内容时,点击 下载 JSON 没有反应”
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user