diff --git a/static/public/js/dnfs.js b/static/public/js/dnfs.js index 0bfb63a..02ab8a2 100644 --- a/static/public/js/dnfs.js +++ b/static/public/js/dnfs.js @@ -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) { /* 如果不在根节点 */