From 7bfe043f644b096bba31217133d0c7b5b72149b5 Mon Sep 17 00:00:00 2001 From: Lazy <2211717435@qq.com> Date: Fri, 13 Oct 2023 10:49:39 +0800 Subject: [PATCH 1/7] Delete: download confirm --- frontend/src/widgets/instance/FileManager.vue | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/frontend/src/widgets/instance/FileManager.vue b/frontend/src/widgets/instance/FileManager.vue index 26148cd3..fc7be5ad 100644 --- a/frontend/src/widgets/instance/FileManager.vue +++ b/frontend/src/widgets/instance/FileManager.vue @@ -296,7 +296,7 @@ const paste = async () => { } }; -const resetname = async (file: string) => { +const resetName = async (file: string) => { const newname = await openDialog(t("重命名"), t("请输入新名称"), file); try { const { execute } = moveFileApi(); @@ -557,7 +557,8 @@ import FileEditor from "./dialogs/FileEditor.vue"; const FileEditorDialog = ref>(); const editFile = (fileName: string) => { - FileEditorDialog.value?.openDialog(fileName); + const path = breadcrumbs[breadcrumbs.length - 1].path + fileName; + FileEditorDialog.value?.openDialog(path, fileName); }; onMounted(() => { @@ -712,21 +713,19 @@ onMounted(() => { From a11fdb45b97a934bf21ecf43d3b9c50f5ddcc245 Mon Sep 17 00:00:00 2001 From: Lazy <2211717435@qq.com> Date: Sat, 14 Oct 2023 11:27:00 +0800 Subject: [PATCH 4/7] Fix: folder can't edit --- frontend/src/widgets/instance/FileManager.vue | 6 +++++- frontend/src/widgets/instance/dialogs/FileEditor.vue | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/widgets/instance/FileManager.vue b/frontend/src/widgets/instance/FileManager.vue index fc7be5ad..1e88a7fc 100644 --- a/frontend/src/widgets/instance/FileManager.vue +++ b/frontend/src/widgets/instance/FileManager.vue @@ -734,7 +734,11 @@ onMounted(() => { {{ t("TXT_CODE_16853efe") }} - + {{ t("TXT_CODE_ad207008") }} diff --git a/frontend/src/widgets/instance/dialogs/FileEditor.vue b/frontend/src/widgets/instance/dialogs/FileEditor.vue index 6f806f09..84302d7e 100644 --- a/frontend/src/widgets/instance/dialogs/FileEditor.vue +++ b/frontend/src/widgets/instance/dialogs/FileEditor.vue @@ -1,5 +1,5 @@