fix(KYC页面): 修复获取上一次注入图片的问题

This commit is contained in:
hzj 2025-11-13 14:15:52 +08:00
parent 5268820610
commit cfd80f05ba

View File

@ -207,9 +207,7 @@ const count = computed(() => applyInfo.value.otherDescription.length) //字数
const tempFiles = ref([]) // const tempFiles = ref([]) //
// const previewUrls = ref([]) // // const previewUrls = ref([]) //
const resImgUrls = ref([]) // const resImgUrls = ref([]) //
const lastImgUrl = computed(() => { const lastImgUrl = ref(null) //
return resImgUrls.value.length > 0 ? resImgUrls.value[resImgUrls.value.length - 1] : null
}) //
const updateStatus = ref(false) // const updateStatus = ref(false) //
@ -370,6 +368,8 @@ const getWithdrawInfoListData = async () => {
applyInfo.value = resWithdrawInfoList.body[0] applyInfo.value = resWithdrawInfoList.body[0]
let imgList = JSON.parse(resWithdrawInfoList.body[0].passportFrontUrl) let imgList = JSON.parse(resWithdrawInfoList.body[0].passportFrontUrl)
resImgUrls.value = imgList.map((item) => item) resImgUrls.value = imgList.map((item) => item)
lastImgUrl.value =
resImgUrls.value.length > 0 ? resImgUrls.value[resImgUrls.value.length - 1] : null
} }
} catch (error) { } catch (error) {
console.error('获取提现信息列表失败:', error) console.error('获取提现信息列表失败:', error)