From 8ff6bff252f24dfb798e36bf730fd3f9dfd85662 Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 27 Jan 2022 04:01:11 +0900 Subject: [PATCH] =?UTF-8?q?game:=20=EC=9E=A5=EC=88=98=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=EC=8B=9C=20=EC=A2=85=EB=8A=A5=EC=9D=B4=20=EB=B6=80=EC=A1=B1?= =?UTF-8?q?=ED=95=98=EB=A9=B4=20=EA=B2=BD=EA=B3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/PageJoin.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/hwe/ts/PageJoin.vue b/hwe/ts/PageJoin.vue index 8d8298cc..dd79678a 100644 --- a/hwe/ts/PageJoin.vue +++ b/hwe/ts/PageJoin.vue @@ -197,7 +197,7 @@ @@ -263,19 +263,19 @@
@@ -533,6 +533,13 @@ export default defineComponent({ async submitForm() { //검증은 언제 되어야 하는가? const args = clone(this.args); + const totalStat = args.leadership + args.strength + args.intel; + + if(totalStat < stats.total){ + if(!confirm(`설정한 능력치가 ${totalStat}으로, 실제 최대치인 ${stats.total}보다 적습니다.\r\n그래도 진행할까요?`)){ + return false; + } + } try { await SammoAPI.General.Join(args); } catch (e) {