메인 연결 페이지의 탭 종료와 복귀 동작 통일

This commit is contained in:
2026-09-14 23:49:30 +00:00
parent 62f4ca3058
commit 854a91c397
45 changed files with 720 additions and 237 deletions
@@ -1,4 +1,6 @@
<script setup lang="ts">
import { usePageExit } from '../composables/usePageExit';
import { computed, ref, watch } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { formatReservedCommandBrief } from '../components/command/reservedCommandBrief';
@@ -9,6 +11,8 @@ import { resolveGeneralIconUrl, useDefaultGeneralIcon } from '../utils/generalIc
import { legacyNationTextColor } from '../utils/legacyNationColor';
import { trpc } from '../utils/trpc';
const { pageExitLabel, exitPage } = usePageExit();
type Result = Awaited<ReturnType<typeof trpc.world.getCurrentCity.query>>;
type General = Result['generals'][number];
type ReservedCommand = General['turns'][number];
@@ -95,9 +99,9 @@ const commandBrief = (command: ReservedCommand): string =>
<br /><button
class="legacy-button legacy-button--navigation back-link"
type="button"
@click="router.push('/')"
@click="exitPage"
>
돌아가기
{{ pageExitLabel }}
</button>
</td>
</tr>
@@ -313,9 +317,9 @@ const commandBrief = (command: ReservedCommand): string =>
<button
class="legacy-button legacy-button--navigation back-link"
type="button"
@click="router.push('/')"
@click="exitPage"
>
돌아가기
{{ pageExitLabel }}
</button>
</td>
</tr>