diff --git a/src/views/account/AccountWalletView.vue b/src/views/account/AccountWalletView.vue
index 6a29137..d02b471 100644
--- a/src/views/account/AccountWalletView.vue
+++ b/src/views/account/AccountWalletView.vue
@@ -3,7 +3,6 @@ import { onBeforeUnmount, onMounted, reactive, ref, watch, nextTick } from 'vue'
import { useRouter } from 'vue-router'
import Sortable from 'sortablejs'
import { accountApi } from '@/api/accountApi'
-import InvestPortfolio from './InvestPortfolio.vue'
import IconBtn from '@/components/ui/IconBtn.vue'
const router = useRouter()
@@ -88,21 +87,9 @@ function syncRows() {
}
watch([wallets, activeType], syncRows, { immediate: true })
-// 탭 선택 — 투자 탭이면 전체 시세를 갱신해 계좌 평가액에 반영
-const refreshingInvest = ref(false)
-async function selectTab(key) {
+// 탭 선택 (투자 계좌는 평가액 직접입력 방식 — 별도 시세갱신 없음)
+function selectTab(key) {
activeType.value = key
- if (key === 'INVEST' && wallets.value.some((w) => w.type === 'INVEST')) {
- refreshingInvest.value = true
- try {
- await accountApi.refreshAllPrices()
- await load()
- } catch {
- // 시세 갱신 실패는 조용히 무시(기존 값 유지)
- } finally {
- refreshingInvest.value = false
- }
- }
}
// ===== 드래그앤드랍 순서 변경 (SortableJS, 터치 지원) =====
@@ -208,7 +195,7 @@ function issuerLabel(t) {
return t === 'BANK' ? '은행명' : t === 'CARD' ? '카드사' : t === 'INVEST' ? '증권사' : '대출기관'
}
function openingLabel(t) {
- return t === 'BANK' ? '초기 잔액' : t === 'CARD' ? '초기 미결제 금액' : t === 'INVEST' ? '초기 투입원금' : '대출 잔액(원금)'
+ return t === 'BANK' ? '초기 잔액' : t === 'CARD' ? '초기 미결제 금액' : t === 'INVEST' ? '투자금(투입원금)' : '대출 잔액(원금)'
}
// 투자 수익률(%) — 투입원금 대비 평가손익
function returnPct(w) {
@@ -354,7 +341,6 @@ onBeforeUnmount(() => sortable?.destroy())
시세 갱신 중…
{{ error }}
불러오는 중...
@@ -378,8 +364,7 @@ onBeforeUnmount(() => sortable?.destroy()) @click.stop="toggleReveal(w.id)" >{{ revealedAccts.has(w.id) ? '🙈' : '👁' }} - · 평가액 직접입력 - · 예수금 {{ won(w.deposit) }} · 주식 {{ won(w.stockValue) }} + · 투자금 {{ won(w.investedAmount) }}평가액을 직접 입력하는 계좌입니다. 종목을 관리하지 않고 입력한 현재 평가액({{ won(w.currentValue) }})을 사용합니다.
-평가액을 갱신하려면 위 수정에서 ‘현재 평가액’을 바꾸세요. 종목으로 자동계산하려면 평가액을 비우면 됩니다.
+평가액을 갱신하려면 위 수정에서 ‘현재 평가액’을 바꾸세요.
불러오는 중...
@@ -454,12 +446,12 @@ onBeforeUnmount(() => sortable?.destroy()) -