This commit is contained in:
cjw
2026-02-15 01:03:16 +08:00
parent f0e1648f6a
commit c58e640430
+8 -1
View File
@@ -97,7 +97,14 @@ class HTMLGenerator:
</div>
"""
else:
logger.warning("cavity_data 为空,无法显示工艺参数")
logger.warning(f"cavity_data 为空,无法显示工艺参数 - 文件: {stp_filename}")
# 即使没有cavity_data,也生成一个空面板占位
cavity_html = """
<div id="cavity-info-panel" style="position: absolute; top: 10px; right: 10px; background: rgba(255,0,0,0.1); padding: 10px;">
<h3>🔧 关键工艺参数</h3>
<div style="color: red;">数据未加载</div>
</div>
"""
html_content = f"""
<!DOCTYPE html>
<html lang="zh-CN">