Skip to content

Commit

Permalink
Refactor net.html to extract the creation of main div into a separate…
Browse files Browse the repository at this point in the history
… function and dispose the previous chart instance
  • Loading branch information
arloor committed Oct 25, 2024
1 parent bc29a45 commit 186dcd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust_http_proxy/html/net.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 class="in"></h1>
newMainDiv.className = 'out';
// 将新的 main div 添加到文档中
document.body.appendChild(newMainDiv);

myChart.dispose();
myChart = null;
return newMainDiv;
}
Expand Down

0 comments on commit 186dcd7

Please sign in to comment.