From aa26b13fad548ded45029967b6d8a89daca3426e Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Thu, 9 Feb 2023 15:36:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/zh.ts | 1 + .../host/file-management/create/index.vue | 3 --- .../src/views/host/file-management/index.vue | 27 +++++++++++++------ 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 78fa970d0..9eca90657 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -711,6 +711,7 @@ export default { type: '类型', root: '根目录', list: '文件列表', + sub: '包含子目录', }, setting: { all: '全部', diff --git a/frontend/src/views/host/file-management/create/index.vue b/frontend/src/views/host/file-management/create/index.vue index 16700b74c..fbc59fd7c 100644 --- a/frontend/src/views/host/file-management/create/index.vue +++ b/frontend/src/views/host/file-management/create/index.vue @@ -20,9 +20,6 @@ :rules="rules" v-loading="loading" > - - - diff --git a/frontend/src/views/host/file-management/index.vue b/frontend/src/views/host/file-management/index.vue index 44dae4bf6..c0f4b28cd 100644 --- a/frontend/src/views/host/file-management/index.vue +++ b/frontend/src/views/host/file-management/index.vue @@ -3,12 +3,7 @@
- +
@@ -16,7 +11,9 @@
- {{ $t('file.root') }} + + + > @@ -69,7 +66,11 @@ @blur="search()" :placeholder="$t('file.search')" > - +
@@ -266,6 +267,16 @@ const handlePath = () => { } }; +const back = () => { + if (paths.value.length > 0) { + let url = '/'; + if (paths.value.length >= 2) { + url = paths.value[paths.value.length - 2].url; + } + jump(url); + } +}; + const jump = async (url: string) => { req.path = url; req.containSub = false;