调整空值
This commit is contained in:
parent
2e768d650b
commit
689a1a2b7a
@ -231,7 +231,7 @@ const handleIframeLoad = async () => {
|
|||||||
if (urineData) {
|
if (urineData) {
|
||||||
const urineSummary = doc.querySelector('.report-item:nth-of-type(6) .report-summary p')
|
const urineSummary = doc.querySelector('.report-item:nth-of-type(6) .report-summary p')
|
||||||
if (urineSummary) {
|
if (urineSummary) {
|
||||||
urineSummary.textContent = urineData.analyse || '暂无小结'
|
urineSummary.textContent = urineData.analyse || ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -242,7 +242,7 @@ const handleIframeLoad = async () => {
|
|||||||
// 改为第7个report-item(原4→7)
|
// 改为第7个report-item(原4→7)
|
||||||
const biochemSummary = doc.querySelector('.report-item:nth-of-type(7) .report-summary p')
|
const biochemSummary = doc.querySelector('.report-item:nth-of-type(7) .report-summary p')
|
||||||
if (biochemSummary) {
|
if (biochemSummary) {
|
||||||
biochemSummary.textContent = biochemData.analyse || '暂无小结'
|
biochemSummary.textContent = biochemData.analyse || ''
|
||||||
} else {
|
} else {
|
||||||
console.error('未找到生化检查小结元素')
|
console.error('未找到生化检查小结元素')
|
||||||
}
|
}
|
||||||
@ -254,7 +254,7 @@ const handleIframeLoad = async () => {
|
|||||||
// 改为第8个report-item(原5→8)
|
// 改为第8个report-item(原5→8)
|
||||||
const bloodSummary = doc.querySelector('.report-item:nth-of-type(8) .report-summary p')
|
const bloodSummary = doc.querySelector('.report-item:nth-of-type(8) .report-summary p')
|
||||||
if (bloodSummary) {
|
if (bloodSummary) {
|
||||||
bloodSummary.textContent = bloodData.analyse || '暂无小结'
|
bloodSummary.textContent = bloodData.analyse || ''
|
||||||
} else {
|
} else {
|
||||||
console.error('未找到血常规小结元素')
|
console.error('未找到血常规小结元素')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user