From cebae030590d0b2c43bfcf460d8ba47362b5dc58 Mon Sep 17 00:00:00 2001 From: shufeng2012 <277665039@qq.com> Date: Thu, 23 Jul 2026 20:37:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E6=95=B4=E5=90=88=E4=B8=BA?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=A1=B5=E9=9D=A2=E5=B0=B1=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/public/js/dnfs.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) { /* 如果不在根节点 */