diff --git a/src/views/ne/neLicense/components/EditModal.vue b/src/views/ne/neLicense/components/EditModal.vue
index 03224d8d..9015de4a 100644
--- a/src/views/ne/neLicense/components/EditModal.vue
+++ b/src/views/ne/neLicense/components/EditModal.vue
@@ -362,7 +362,7 @@ onMounted(() => {});
- Upload
+ {{ t('views.ne.neLicense.upload') }}
diff --git a/src/views/ne/neLicense/components/UploadLicenseFile.vue b/src/views/ne/neLicense/components/UploadLicenseFile.vue
index f78e5b20..867ad4c5 100644
--- a/src/views/ne/neLicense/components/UploadLicenseFile.vue
+++ b/src/views/ne/neLicense/components/UploadLicenseFile.vue
@@ -111,14 +111,15 @@ function fnModalCancel() {
/**表单上传前检查或转换压缩 */
function fnBeforeUploadFile(file: FileType) {
if (modalState.confirmLoading) return false;
- const fileName = file.name;
- if (!fileName.endsWith('.ini')) {
- message.error('只支持上传文件格式 .ini', 3);
+ if (!file.name.endsWith('.ini')) {
+ const msg = `${t('components.UploadModal.onlyAllow')} .ini`;
+ message.error(msg, 3);
return Upload.LIST_IGNORE;
}
- const isLt2M = file.size / 1024 / 1024 < 2;
- if (!isLt2M) {
- message.error('文件必须小于2MB', 3);
+ const isLt3M = file.size / 1024 / 1024 < 3;
+ if (!isLt3M) {
+ const msg = `${t('components.UploadModal.allowFilter')} 3MB`;
+ message.error(msg, 3);
return Upload.LIST_IGNORE;
}
return true;
diff --git a/src/views/ne/neLicense/index.vue b/src/views/ne/neLicense/index.vue
index 874873d5..a410aedd 100644
--- a/src/views/ne/neLicense/index.vue
+++ b/src/views/ne/neLicense/index.vue
@@ -254,9 +254,7 @@ function fnRecordState(row: Record) {
if (modalState.confirmLoading) return;
Modal.confirm({
title: t('common.tipTitle'),
- content: t('views.ne.neLicense.reloadTip', {
- txt: `${row.neType} ${row.neId}`,
- }),
+ content: t('views.ne.neLicense.reloadTip'),
onOk() {
modalState.confirmLoading = true;
const hide = message.loading(t('common.loading'), 0);