feat(提现页): 修复没提交资料的报错

This commit is contained in:
hzj 2025-10-24 10:26:30 +08:00
parent 0aeea9dd20
commit e5cbf09dcc

View File

@ -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()
})
</script>