Skip to content

Commit

Permalink
2.4.10 ssh ace mode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobaidadada committed Feb 4, 2025
1 parent 9553460 commit 39a6220
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "filecat",
"version": "2.4.9",
"version": "2.4.10",
"description": "filecat 文件管理器",
"author": "xiaobaidadada",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,27 +99,27 @@ export function RemoteLinuxFileItem(props: FileItemData & { index?: number,itemW
// 文件
const item = clickList.find(v => v === index)
if (item !== undefined) {
let model = getEditModelType(name);
if (!model) {
model = "txt"
}
if (model) {
// let model = getEditModelType(name);
// if (!model) {
// model = "txt"
// }
// if (model) {
// 双击文件
const open_file = async ()=>{
const req = new SshPojo();
Object.assign(req,sshInfo);
req.file = joinPaths(...shellNowDir,name);
const rsq = await sshHttp.post("get/file/text",req);
setEditorSetting({
model,
// model,
open: true,
fileName: props.name,
save: async (context) => {
req.context = context;
const rsq = await sshHttp.post("update/file/text",req);
if (rsq.code === 0) {
editor_data.set_value_temp('')
setEditorSetting({open: false, model: '', fileName: '', save: null})
setEditorSetting({open: false, fileName: '', save: null})
}
}
})
Expand All @@ -139,7 +139,7 @@ export function RemoteLinuxFileItem(props: FileItemData & { index?: number,itemW
}
await open_file();
return;
}
// }
}
}
}
Expand Down

0 comments on commit 39a6220

Please sign in to comment.