From 483c5f227ff91ca05af19d1457de8689cd1ade55 Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Tue, 28 Jul 2026 12:17:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=91=E5=B8=83=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E6=9C=9F=E9=97=B4=E5=90=8C=E6=AD=A5=E7=A6=81=E7=94=A8=E9=87=8D?= =?UTF-8?q?=E7=BD=AE/=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E8=AF=AF=E8=A7=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/public/js/dnfs.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/static/public/js/dnfs.js b/static/public/js/dnfs.js index 3bd0609..c5eb984 100644 --- a/static/public/js/dnfs.js +++ b/static/public/js/dnfs.js @@ -197,9 +197,16 @@ input_note_submit.addEventListener('click', function(event) { var pid = (stack.length == 0) ? 0 : stack[stack.length - 1]; //alert(stack.length) //alert(pid) + // 发布期间同时禁用重置/删除,避免误触干扰 input_note_submit.disabled = true; + input_note_clear.disabled = true; + delete_note.disabled = true; addNode(pid, title, content) - .finally(() => { input_note_submit.disabled = false; }); + .finally(() => { + input_note_submit.disabled = false; + input_note_clear.disabled = false; + delete_note.disabled = false; + }); }) input_note_clear.addEventListener('click', function(event) {