From e8bc1310da65a867bb52069ca20293850b959978 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 14 Dec 2023 11:22:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=9B=AE=E5=BD=95=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=98=BE=E7=A4=BA=E9=9A=90=E8=97=8F=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9=20(#3315)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/file-list/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/file-list/index.vue b/frontend/src/components/file-list/index.vue index 14cdaeb89..537543545 100644 --- a/frontend/src/components/file-list/index.vue +++ b/frontend/src/components/file-list/index.vue @@ -103,7 +103,7 @@ const rowName = ref(''); const data = ref(); const loading = ref(false); const paths = ref([]); -const req = reactive({ path: '/', expand: true, page: 1, pageSize: 300 }); +const req = reactive({ path: '/', expand: true, page: 1, pageSize: 300, showHidden: true }); const selectRow = ref(); const popoverVisible = ref(false); @@ -196,13 +196,17 @@ const search = async (req: File.ReqFile) => { }; onMounted(() => { - req.path = props.path; + if (props.path != '') { + req.path = props.path; + } rowName.value = ''; search(req); }); onUpdated(() => { - req.path = props.path; + if (props.path != '') { + req.path = props.path; + } search(req); });