🎨 整合为刷新页面就清空输入框

This commit is contained in:
shufeng2012 committed 2026-07-23 20:37:47 +08:00
1 parent 234e4340c4
commit cebae03059
1 file changed
+3 -2
+3 -2
View File
@@ -173,8 +173,6 @@ input_note_submit.addEventListener('click', function(event) {
alert(pid)
addNode(token, pid, title, content).then(result => {
alert(result.message);
input_note_title.value = "";
input_note_content.value = "";
})
})
@@ -198,6 +196,9 @@ function load_notes(main_node) {
article_title.textContent = "";
article_content.textContent = "";
input_note_title.value = "";
input_note_content.value = "";
recommend_list.replaceChildren();
//alert(stack.length)
if (stack.length > 0) { /* 如果不在根节点 */