feat:避免undefine错误

This commit is contained in:
2025-12-11 20:50:32 +08:00
parent 19391cb466
commit ba092529e6

View File

@ -125,8 +125,8 @@ const getText = (val) => {
}
watch(() => listQuery.value, (val) => {
let html = dataBt.value;
html += `<p style="text-align: center;"><span style="font-size: 22px;">${val.ypbt}</span></p>`
html += `<p>${val.fj}</p>`
html += `<p style="text-align: center;"><span style="font-size: 22px;">${val.ypbt||''}</span></p>`
html += `<p>${val.fj||''}</p>`
textContent.value = html
},
{