🚸 添加 是否保留输入内容 功能

This commit is contained in:
shufeng2012 committed 2026-07-23 20:55:31 +08:00
1 parent cebae03059
commit ed4f114f18
1 file changed
+14 -2
+14 -2
View File
@@ -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)