From e5cbf09dcc155b1a1cd8972ee9206935f67b64be Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Fri, 24 Oct 2025 10:26:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8F=90=E7=8E=B0=E9=A1=B5):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=B2=A1=E6=8F=90=E4=BA=A4=E8=B5=84=E6=96=99=E7=9A=84?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Wallet/CashOut/CashOut.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/Wallet/CashOut/CashOut.vue b/src/views/Wallet/CashOut/CashOut.vue index 1861644..8a2635d 100644 --- a/src/views/Wallet/CashOut/CashOut.vue +++ b/src/views/Wallet/CashOut/CashOut.vue @@ -193,7 +193,7 @@ import { withdrawApply, //提交提现申请 } from '@/api/lottery' import { setApplyInfo, getApplyInfo } from '@/utils/applyStore.js' -import { ref, onMounted, computed } from 'vue' +import { ref, onMounted, computed, onUnmounted } from 'vue' import { useRouter } from 'vue-router' const router = useRouter() @@ -249,8 +249,14 @@ const getDrawableAmount = async () => { onMounted(() => { getDrawableAmount() //获取可提现金额 - bankCardInfo.value = - { ...getApplyInfo(), cardImages: JSON.parse(getApplyInfo().cardImages) } || {} + if (getApplyInfo()) { + bankCardInfo.value = + { ...getApplyInfo(), cardImages: JSON.parse(getApplyInfo().cardImages) } || {} + } +}) + +onUnmounted(() => { + setApplyInfo() })