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() })