✨ 添加 删除节点确认 功能
This commit is contained in:
1 parent
347453d74d
commit
15a95f7a18
1 file changed
+3
@@ -106,6 +106,9 @@ async function addNode(token, pid, title, content) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function deleteNode(token, id) {
|
async function deleteNode(token, id) {
|
||||||
|
if (confirm("确认删除此节点?") == false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
obj = {"id": id};
|
obj = {"id": id};
|
||||||
jsonBody = JSON.stringify(obj);
|
jsonBody = JSON.stringify(obj);
|
||||||
|
|||||||
Reference in new issue
Block a user