replacing the dynamic selectedItem.path+'/'+selectedItem.name with the filePath

This commit is contained in:
CakeCN
2026-01-07 19:13:38 +08:00
parent b806da10c4
commit ee20e8b85b

View File

@@ -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秒
});