1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 16:29:17 +08:00

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', downloadSuccess: 'Download succeeded',
downloadUrl: 'Download URL', downloadUrl: 'Download URL',
downloadStart: 'Download start!', downloadStart: 'Download start!',
moveStart: 'Move successfully', moveSuccess: 'Move success',
copySuccess: 'Copy success',
move: 'Move', move: 'Move',
copy: 'Copy', copy: 'Copy',
calculate: 'Calculate', calculate: 'Calculate',

View File

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

View File

@ -92,7 +92,12 @@ const submit = async (formEl: FormInstance | undefined) => {
loading.value = true; loading.value = true;
MoveFile(addForm) MoveFile(addForm)
.then(() => { .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(); handleClose();
}) })
.finally(() => { .finally(() => {