feat: 修改复制动作提示

pull/199/head
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(() => {