diff --git a/front/terminal/src/components/FileBlock.vue b/front/terminal/src/components/FileBlock.vue index b4773b8..d302bd0 100644 --- a/front/terminal/src/components/FileBlock.vue +++ b/front/terminal/src/components/FileBlock.vue @@ -877,8 +877,9 @@ export default { }; watch(dir,() => { - if(mkFileRef.value) mkFileRef.value.reset(); - if(fileUrlRef.value) fileUrlRef.value.reset(); + if(mkFileRef.value) mkFileRef.value.closeDialog(); + if(fileUrlRef.value) fileUrlRef.value.closeDialog(); + if(fileAttrRef.value) fileAttrRef.value.closeDialog(); }); // 滚动到可视区 diff --git a/front/terminal/src/locales/en_US.json b/front/terminal/src/locales/en_US.json index de87beb..6af4be4 100644 --- a/front/terminal/src/locales/en_US.json +++ b/front/terminal/src/locales/en_US.json @@ -137,5 +137,6 @@ "所有者": "Owner", "所属组": "Group", "其他用户": "Others", - "应用到子目录和文件": "Apply to sub directories and files" + "应用到子目录和文件": "Apply to sub directories and files", + "TCode必须以 /,S,U 开头": "TCode must start with /,S,U" } \ No newline at end of file diff --git a/front/terminal/src/views/FrameWork.vue b/front/terminal/src/views/FrameWork.vue index 76de289..7b6a135 100644 --- a/front/terminal/src/views/FrameWork.vue +++ b/front/terminal/src/views/FrameWork.vue @@ -469,11 +469,20 @@ export default { } } else { - ElMessage({ - message: 'TCode-' + transTcode + ' does not exist', - type: 'warning', - grouping: true, - }); + if(transTcode[0] == '/' || transTcode[0] == 'S' || transTcode[0] == 'U') { + ElMessage({ + message: 'TCode-' + transTcode + ' does not exist', + type: 'warning', + grouping: true, + }); + } + else { + ElMessage({ + message: i18n.global.t('TCode必须以 /,S,U 开头'), + type: 'warning', + grouping: true, + }); + } } }; // 重置用户TCode执行器