deving
This commit is contained in:
@@ -97,7 +97,14 @@ class HTMLGenerator:
|
|||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
else:
|
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"""
|
html_content = f"""
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh-CN">
|
<html lang="zh-CN">
|
||||||
|
|||||||
Reference in New Issue
Block a user