From 1e1549450ada861c8563e21bb671cf2b5af96552 Mon Sep 17 00:00:00 2001 From: Lazy <2211717435@qq.com> Date: Thu, 30 Nov 2023 14:15:13 +0800 Subject: [PATCH] Optimize: file manager operation --- frontend/src/widgets/instance/FileManager.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/widgets/instance/FileManager.vue b/frontend/src/widgets/instance/FileManager.vue index 4ef10811..eb34a52c 100644 --- a/frontend/src/widgets/instance/FileManager.vue +++ b/frontend/src/widgets/instance/FileManager.vue @@ -11,7 +11,7 @@ import { useScreen } from "@/hooks/useScreen"; import { arrayFilter } from "@/tools/array"; import { useLayoutCardTools } from "@/hooks/useCardTools"; import { throttle } from "lodash"; -import { filterFileName, getFileIcon } from "@/tools/fileManager"; +import { filterFileName, getFileExtName, getFileIcon } from "@/tools/fileManager"; import { useFileManager } from "@/hooks/useFileManager"; import FileEditor from "./dialogs/FileEditor.vue"; import type { DataType } from "@/types/fileManager"; @@ -358,10 +358,18 @@ onMounted(() => { {{ t("TXT_CODE_ecbd7449") }} - + {{ t("TXT_CODE_a64f3007") }} - + {{ t("TXT_CODE_65b21404") }}