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, // withdrawApply, //
} from '@/api/lottery' } from '@/api/lottery'
import { setApplyInfo, getApplyInfo } from '@/utils/applyStore.js' 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' import { useRouter } from 'vue-router'
const router = useRouter() const router = useRouter()
@ -249,8 +249,14 @@ const getDrawableAmount = async () => {
onMounted(() => { onMounted(() => {
getDrawableAmount() // getDrawableAmount() //
bankCardInfo.value = if (getApplyInfo()) {
{ ...getApplyInfo(), cardImages: JSON.parse(getApplyInfo().cardImages) } || {} bankCardInfo.value =
{ ...getApplyInfo(), cardImages: JSON.parse(getApplyInfo().cardImages) } || {}
}
})
onUnmounted(() => {
setApplyInfo()
}) })
</script> </script>