mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 10:57:45 +08:00
Merge pull request #735 from LYZhelloworld/hotfix/Helloworld/issue-716
Hotfix/helloworld/issue 716
This commit is contained in:
@@ -112,13 +112,13 @@ const action = (action_data, arr) => {
|
||||
const kills_input = input_text()
|
||||
.attr('type', 'number')
|
||||
.val(String(action_data.kills ?? ""))
|
||||
.change(function () { action_data.kills = $(this).val !== "" ? Number($(this).val()) : undefined; });
|
||||
.change(function () { action_data.kills = $(this).val() !== "" ? Number($(this).val()) : undefined; });
|
||||
tr.append($('<td>').append(kills_input));
|
||||
// 费用变化
|
||||
const cost_changes = input_text()
|
||||
.attr('type', 'number')
|
||||
.val(String(action_data.cost_changes ?? ""))
|
||||
.change(function () { action_data.cost_changes = $(this).val !== "" ? Number($(this).val()) : undefined; });
|
||||
.change(function () { action_data.cost_changes = $(this).val() !== "" ? Number($(this).val()) : undefined; });
|
||||
tr.append($('<td>').append(cost_changes));
|
||||
// 干员
|
||||
const name_input = input_oper_name()
|
||||
@@ -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