From ee20e8b85ba16b29c84926d292b83a1f82d565f7 Mon Sep 17 00:00:00 2001 From: CakeCN Date: Wed, 7 Jan 2026 19:13:38 +0800 Subject: [PATCH] replacing the dynamic selectedItem.path+'/'+selectedItem.name with the filePath --- code-server-like/templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-server-like/templates/index.html b/code-server-like/templates/index.html index 3efe1f2..a3d221c 100644 --- a/code-server-like/templates/index.html +++ b/code-server-like/templates/index.html @@ -161,7 +161,7 @@ // saveFile if (saveTimeout) clearTimeout(saveTimeout); saveTimeout = setTimeout(() => { - postSaveFile(selectedItem.path+'/'+selectedItem.name, editor.getValue()); + postSaveFile(filePath, editor.getValue()); }, 5000); // 5000ms = 5秒 });