From ed4f114f18635a884421c9219e2e008837814589 Mon Sep 17 00:00:00 2001 From: shufeng2012 <277665039@qq.com> Date: Thu, 23 Jul 2026 20:55:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E6=B7=BB=E5=8A=A0=20=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E4=BF=9D=E7=95=99=E8=BE=93=E5=85=A5=E5=86=85=E5=AE=B9?= =?UTF-8?q?=20=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/public/js/dnfs.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/static/public/js/dnfs.js b/static/public/js/dnfs.js index 02ab8a2..044e9a8 100644 --- a/static/public/js/dnfs.js +++ b/static/public/js/dnfs.js @@ -196,8 +196,20 @@ function load_notes(main_node) { article_title.textContent = ""; article_content.textContent = ""; - input_note_title.value = ""; - input_note_content.value = ""; + if (input_note_title.value != "" || input_note_content.value != "") { + if (confirm("是否放弃当前输入的内容?") == true) { + input_note_title.value = ""; + input_note_content.value = ""; + } else { + if (stack.length != 0) { + return; + } + } + } else { + input_note_title.value = ""; + input_note_content.value = ""; + } + recommend_list.replaceChildren(); //alert(stack.length)