feat:避免undefine错误
This commit is contained in:
@ -125,8 +125,8 @@ const getText = (val) => {
|
|||||||
}
|
}
|
||||||
watch(() => listQuery.value, (val) => {
|
watch(() => listQuery.value, (val) => {
|
||||||
let html = dataBt.value;
|
let html = dataBt.value;
|
||||||
html += `<p style="text-align: center;"><span style="font-size: 22px;">${val.ypbt}</span></p>`
|
html += `<p style="text-align: center;"><span style="font-size: 22px;">${val.ypbt||''}</span></p>`
|
||||||
html += `<p>${val.fj}</p>`
|
html += `<p>${val.fj||''}</p>`
|
||||||
textContent.value = html
|
textContent.value = html
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user