From 53d0b45f8a5ae8e58c67fb8c4849df2f74e6b0d4 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Fri, 10 Mar 2023 16:27:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E5=8A=A8=E4=BD=9C=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/en.ts | 3 ++- frontend/src/lang/modules/zh.ts | 3 ++- frontend/src/views/host/file-management/move/index.vue | 7 ++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index a7d46adae..22c75f97c 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -728,7 +728,8 @@ export default { downloadSuccess: 'Download succeeded', downloadUrl: 'Download URL', downloadStart: 'Download start!', - moveStart: 'Move successfully', + moveSuccess: 'Move success', + copySuccess: 'Copy success', move: 'Move', copy: 'Copy', calculate: 'Calculate', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index a23ea05cf..4690105d6 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -733,7 +733,8 @@ export default { downloadSuccess: '下载成功', downloadUrl: '下载地址', downloadStart: '下载开始!', - moveStart: '移动成功', + moveSuccess: '移动成功', + copySuccess: '复制成功', move: '移动', copy: '复制', calculate: '计算', diff --git a/frontend/src/views/host/file-management/move/index.vue b/frontend/src/views/host/file-management/move/index.vue index 1101f4833..f0ff9c9a0 100644 --- a/frontend/src/views/host/file-management/move/index.vue +++ b/frontend/src/views/host/file-management/move/index.vue @@ -92,7 +92,12 @@ const submit = async (formEl: FormInstance | undefined) => { loading.value = true; MoveFile(addForm) .then(() => { - MsgSuccess(i18n.global.t('file.moveStart')); + if (type.value === 'cut') { + MsgSuccess(i18n.global.t('file.moveSuccess')); + } else { + MsgSuccess(i18n.global.t('file.copySuccess')); + } + handleClose(); }) .finally(() => {