diff --git a/frontend/src/business/components/api/test/components/jar/JarConfigFrom.vue b/frontend/src/business/components/api/test/components/jar/JarConfigFrom.vue index 149306cbeb..db85bb08da 100644 --- a/frontend/src/business/components/api/test/components/jar/JarConfigFrom.vue +++ b/frontend/src/business/components/api/test/components/jar/JarConfigFrom.vue @@ -144,6 +144,10 @@ this.$warning(this.$t('api_test.jar_config.upload_limit_size_warn', [this.limitSize])); return false; } + if (file.name.length > 60) { + this.$warning(this.$t('api_test.api_import.file_name_to_long')); + return false; + } return true; }, clickEdit() { diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 5bd950a3ba..d607081224 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -1624,6 +1624,7 @@ export default { ms_env_import_file_limit: "It only supports JSON format files exported through metersphere", file_exceed_limit: "The number of files exceeds the limit", import_cover_tip: "Import mode: Overwrite mode description", + file_name_to_long: "File name is too long", cover_tip_1: "1. Add if the interface path does not exist", cover_tip_2: "2. The interface path is consistent with the original interface, if the content is inconsistent, the original interface will be overwritten", cover_tip_3: "3. If the interface path and content are consistent with the original interface, no change will be made", diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 351a0e6162..56daf9947e 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -1622,6 +1622,7 @@ export default { jmeter_export_tip: "通过 JMeter 生成JMX文件", jmeter_tip: "支持 JMeter5.2-5.4版本的JMX文件", suffixFormatErr: "文件格式不符合要求", + file_name_to_long: "文件名称过长", swagger_url_import: "使用URL导入", add_request_params: "添加请求参数", optional: "(可选)", diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index 6b5dc78703..97ae9eff0c 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -1622,6 +1622,7 @@ export default { jmeter_export_tip: "通過 JMeter 生成JMX文件", jmeter_tip: "支持 JMeter5.2-5.4版本的JMX文件", suffixFormatErr: "文件格式不符合要求", + file_name_to_long: "文件名稱過長", swagger_url_import: "使用URL導入", add_request_params: "添加請求參數", optional: "(可選)",