From 497c76743bb96697622b07f8d529bf1a1ad9b4ef Mon Sep 17 00:00:00 2001 From: jmal Date: Sun, 9 Apr 2023 00:38:41 +0800 Subject: [PATCH] oss add web delete api --- src/components/ShowFile/ShowFile.vue | 1 + src/views/home/mobile/index.vue | 1 + src/views/setting/articles/articleManager.vue | 3 +++ 3 files changed, 5 insertions(+) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 46d0d21..f18e472 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -3005,6 +3005,7 @@ export default { type: 'warning' }).then(() => { api.delete({ + currentDirectory: this.rowContextData.path, username: this.$store.state.user.name, fileIds: fileIds }).then(() => { diff --git a/src/views/home/mobile/index.vue b/src/views/home/mobile/index.vue index 9232276..3bce2c2 100644 --- a/src/views/home/mobile/index.vue +++ b/src/views/home/mobile/index.vue @@ -659,6 +659,7 @@ export default { message: '此操作将永久删除' + str + ', 是否继续?' }).then(() => { api.delete({ + currentDirectory: this.rowContextData.path, username: this.$store.state.user.name, fileIds: fileIds }).then(() => { diff --git a/src/views/setting/articles/articleManager.vue b/src/views/setting/articles/articleManager.vue index 203051c..b959589 100644 --- a/src/views/setting/articles/articleManager.vue +++ b/src/views/setting/articles/articleManager.vue @@ -287,8 +287,10 @@ export default { }, handleDelete() { let fileIds = [] + let currentDirectory = '' if (this.multipleSelection.length > 0) { this.multipleSelection.forEach(value => { + currentDirectory = value.path fileIds.push(value.id) }) } @@ -298,6 +300,7 @@ export default { type: 'warning' }).then(() => { api.delete({ + currentDirectory: currentDirectory, username: this.$store.state.user.name, fileIds: fileIds }).then(() => {