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

This commit is contained in:
Hide_D committed 2026-09-14 23:49:30 +00:00
1 parent 62f4ca3058
commit 854a91c397
45 files changed
+720 -237

No files matched your search

@@ -0,0 +1,16 @@
import { useRouter } from 'vue-router';
import { isAuxiliaryWindow } from '../utils/auxiliaryNavigation';
export const usePageExit = (): { pageExitLabel: '창 닫기' | '돌아가기'; exitPage: () => void } => {
const router = useRouter();
const canClose = isAuxiliaryWindow();
const pageExitLabel = canClose ? '창 닫기' : '돌아가기';
const exitPage = (): void => {
if (canClose) {
window.close();
return;
}
void router.push('/');
};
return { pageExitLabel, exitPage };
};