Clear comparison results and topology visualization on new file upload
This commit is contained in:
10
gui.py
10
gui.py
@@ -342,6 +342,16 @@ def index():
|
|||||||
|
|
||||||
update_info_panel()
|
update_info_panel()
|
||||||
|
|
||||||
|
# 清空方案对比结果和拓扑可视化
|
||||||
|
state["results"] = []
|
||||||
|
if refs["results_table"]:
|
||||||
|
refs["results_table"].rows = []
|
||||||
|
refs["results_table"].selected = []
|
||||||
|
if refs["plot_container"]:
|
||||||
|
refs["plot_container"].clear()
|
||||||
|
if refs["export_row"]:
|
||||||
|
refs["export_row"].clear()
|
||||||
|
|
||||||
# 清空上传组件列表,以便下次选择(配合 .no-list CSS 使用)
|
# 清空上传组件列表,以便下次选择(配合 .no-list CSS 使用)
|
||||||
if refs["upload_widget"]:
|
if refs["upload_widget"]:
|
||||||
refs["upload_widget"].reset()
|
refs["upload_widget"].reset()
|
||||||
|
|||||||
Reference in New Issue
Block a user