feat: 修改复制动作提示

This commit is contained in:
zhengkunwang223 2023-03-10 16:27:39 +08:00 committed by zhengkunwang223
parent b7ddb6fd42
commit 53d0b45f8a
3 changed files with 10 additions and 3 deletions

View File

@ -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',

View File

@ -733,7 +733,8 @@ export default {
downloadSuccess: '下载成功',
downloadUrl: '下载地址',
downloadStart: '下载开始!',
moveStart: '移动成功',
moveSuccess: '移动成功',
copySuccess: '复制成功',
move: '移动',
copy: '复制',
calculate: '计算',

View File

@ -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(() => {