fix: 修复删除返回按钮后JS报错导致数据不渲染
- 01-verify-inspection.html 添加 topBackBtn 空值保护
- 避免 document.getElementById('topBackBtn') 返回 null 时 JS 崩溃
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
235505020f
commit
b4a6bff21f
@@ -1160,11 +1160,12 @@
|
||||
|
||||
/* 根据来源设置返回目标页 */
|
||||
refererPage = detectRefererPage();
|
||||
document.getElementById('topBackBtn').href = refererPage;
|
||||
var backBtn = document.getElementById('topBackBtn');
|
||||
if (backBtn) backBtn.href = refererPage;
|
||||
|
||||
initDirectSupplierSelect();
|
||||
renderOrderCards();
|
||||
bindBackBtn();
|
||||
if (backBtn) bindBackBtn();
|
||||
bindCameraClick();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user