diff --git a/frontend/src/views/host/file-management/index.vue b/frontend/src/views/host/file-management/index.vue
index e0a3abd51..c81ad1783 100644
--- a/frontend/src/views/host/file-management/index.vue
+++ b/frontend/src/views/host/file-management/index.vue
@@ -58,6 +58,9 @@
{{ $t('file.download') }}
+
+ {{ $t('commons.button.delete') }}
+
{
search();
};
+const batchDelFiles = () => {
+ ElMessageBox.confirm(i18n.global.t('commons.msg.delete'), i18n.global.t('commons.msg.deleteTitle'), {
+ confirmButtonText: i18n.global.t('commons.button.confirm'),
+ cancelButtonText: i18n.global.t('commons.button.cancel'),
+ type: 'info',
+ }).then(() => {
+ const pros = [];
+ for (const s of selects.value) {
+ pros.push(DeleteFile({ path: s['path'], isDir: s['isDir'] }));
+ }
+ loading.value = true;
+ Promise.all(pros)
+ .then(() => {
+ MsgSuccess(i18n.global.t('commons.msg.deleteSuccess'));
+ search();
+ })
+ .finally(() => {
+ loading.value = false;
+ });
+ });
+};
+
const getFileSize = (size: number) => {
return computeSize(size);
};