From 5323d91abd6223d7b9c08dac52953846313a5022 Mon Sep 17 00:00:00 2001 From: jmal Date: Thu, 10 Aug 2023 19:05:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=8C=82=E8=BD=BD?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/file-api.js | 8 ++++++++ src/components/ShowFile/ShowFile.vue | 2 +- src/views/public/share/shareList.vue | 16 ++++++++++++++-- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/api/file-api.js b/src/api/file-api.js index 4e62db8..ab2cb43 100644 --- a/src/api/file-api.js +++ b/src/api/file-api.js @@ -191,6 +191,14 @@ export default { params }) }, + // 挂载文件夹 + mountFolder: function(data) { + return request({ + url: '/share/mount-folder', + method: 'put', + data: data + }) + }, // 验证提取码 validShareCode: function(data) { return request({ diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index cc5b781..8021c17 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -2675,7 +2675,7 @@ export default { .searchFileAndOpenDir({ userId: this.$store.state.user.userId, username: this.$store.getters.name, - id: row.id, + id: row.mountFileId || row.id, currentDirectory: encodeURI(this.$route.query.path), pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize diff --git a/src/views/public/share/shareList.vue b/src/views/public/share/shareList.vue index c420454..470eb5f 100644 --- a/src/views/public/share/shareList.vue +++ b/src/views/public/share/shareList.vue @@ -9,7 +9,7 @@ {{ netdiskName }} -
+