From ca09dce2bd8fadf5a57220031a8ec0d001cab38c Mon Sep 17 00:00:00 2001 From: sb Date: Thu, 9 Jul 2026 22:33:50 +0900 Subject: [PATCH] =?UTF-8?q?refactor(wallets):=20=EA=B3=84=EC=A2=8C=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80/=EC=88=98=EC=A0=95=EC=9D=84=20=EB=AA=A8?= =?UTF-8?q?=EB=8B=AC=20=E2=86=92=20=EB=B3=84=EB=8F=84=20=ED=99=94=EB=A9=B4?= =?UTF-8?q?(=ED=99=94=EB=A9=B4=EC=A0=84=ED=99=98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - WalletFormView.vue 신규: /account/wallets/new · /:id/edit 라우트 - 생성 시 '계좌 종류' 선택 UI 복원(탭 제거 후 빠졌던 부분) - AccountWalletView: 모달·폼 로직 제거, +/수정 버튼은 화면 이동 - 상세 라우트는 :id(\d+)로 제한(new와 충돌 방지) Co-Authored-By: Claude Opus 4.8 --- src/router/index.js | 14 +- src/views/account/AccountWalletView.vue | 219 +--------------- src/views/account/WalletFormView.vue | 324 ++++++++++++++++++++++++ 3 files changed, 345 insertions(+), 212 deletions(-) create mode 100644 src/views/account/WalletFormView.vue diff --git a/src/router/index.js b/src/router/index.js index efa1c1b..2f21fc7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -140,7 +140,19 @@ const router = createRouter({ meta: { requiresAuth: true }, }, { - path: '/account/wallets/:id', + path: '/account/wallets/new', + name: 'account-wallet-new', + component: () => import('../views/account/WalletFormView.vue'), + meta: { requiresAuth: true }, + }, + { + path: '/account/wallets/:id(\\d+)/edit', + name: 'account-wallet-edit', + component: () => import('../views/account/WalletFormView.vue'), + meta: { requiresAuth: true }, + }, + { + path: '/account/wallets/:id(\\d+)', name: 'account-wallet-detail', component: () => import('../views/account/AccountWalletDetailView.vue'), meta: { requiresAuth: true }, diff --git a/src/views/account/AccountWalletView.vue b/src/views/account/AccountWalletView.vue index b5d0e96..b9f0f0b 100644 --- a/src/views/account/AccountWalletView.vue +++ b/src/views/account/AccountWalletView.vue @@ -1,12 +1,11 @@ + + + +