From 7f2b4596f7790496e6daaf56a6b8874c70850550 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 26 Mar 2022 23:30:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=82=AC=EB=A0=B9=EB=B6=80=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=B5=9C=EA=B7=BC=20=ED=84=B4=20=EC=A0=80=EC=9E=A5?= =?UTF-8?q?=20=EC=95=88=EB=90=98=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/PageChiefCenter.vue | 6 ------ hwe/ts/components/ChiefReservedCommand.vue | 10 ++++++++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hwe/ts/PageChiefCenter.vue b/hwe/ts/PageChiefCenter.vue index 396796ac..f8f1599d 100644 --- a/hwe/ts/PageChiefCenter.vue +++ b/hwe/ts/PageChiefCenter.vue @@ -125,12 +125,6 @@ import { SammoAPI } from "./SammoAPI"; import { unwrap } from "@/util/unwrap"; import { StoredActionsHelper } from "./util/StoredActionsHelper"; -const { - serverNick, - mapName, - unitSet, -} = staticValues; - const props = defineProps({ maxChiefTurn: VueTypes.number.isRequired, }) diff --git a/hwe/ts/components/ChiefReservedCommand.vue b/hwe/ts/components/ChiefReservedCommand.vue index 9667037d..92353e8e 100644 --- a/hwe/ts/components/ChiefReservedCommand.vue +++ b/hwe/ts/components/ChiefReservedCommand.vue @@ -300,7 +300,7 @@ import VueTypes from "vue-types"; import DragSelect from "@/components/DragSelect.vue"; import { isString, range, trim } from "lodash"; import { SammoAPI } from "@/SammoAPI"; -import type { ChiefResponse, CommandItem, TurnObj } from "@/defs"; +import type { ChiefResponse, CommandItem, ReserveCommandResponse, TurnObj } from "@/defs"; import { QueryActionHelper } from "@/util/QueryActionHelper"; import type { Args } from "@/processing/args"; import type { StoredActionsHelper } from "@/util/StoredActionsHelper"; @@ -584,11 +584,17 @@ async function reserveCommand() { } try { - await SammoAPI.NationCommand.ReserveCommand({ + const result = await SammoAPI.NationCommand.ReserveCommand({ turnList: reqTurnList, action: commandName, }); + storedActionsHelper.pushRecentActions({ + action: commandName, + brief: result.brief, + arg: {} + }); + queryActionHelper.releaseSelectedTurnList(); } catch (e) { console.error(e);