Skip to content

Commit

Permalink
style: display logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyzyykk committed Dec 16, 2024
1 parent 26b9f9d commit ff1b75b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
5 changes: 3 additions & 2 deletions front/terminal/src/components/FileBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
// 滚动到可视区
Expand Down
3 changes: 2 additions & 1 deletion front/terminal/src/locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
19 changes: 14 additions & 5 deletions front/terminal/src/views/FrameWork.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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执行器
Expand Down

0 comments on commit ff1b75b

Please sign in to comment.