fix(项目管理): jar包上传,文件名太长上传报错
--bug=1009111 --user=lyh 【项目管理】jar包上传,文件名太长上传报错 https://www.tapd.cn/55049933/s/1084555
This commit is contained in:
parent
cfd327a066
commit
78e23135df
|
@ -144,6 +144,10 @@
|
||||||
this.$warning(this.$t('api_test.jar_config.upload_limit_size_warn', [this.limitSize]));
|
this.$warning(this.$t('api_test.jar_config.upload_limit_size_warn', [this.limitSize]));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (file.name.length > 60) {
|
||||||
|
this.$warning(this.$t('api_test.api_import.file_name_to_long'));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
clickEdit() {
|
clickEdit() {
|
||||||
|
|
|
@ -1624,6 +1624,7 @@ export default {
|
||||||
ms_env_import_file_limit: "It only supports JSON format files exported through metersphere",
|
ms_env_import_file_limit: "It only supports JSON format files exported through metersphere",
|
||||||
file_exceed_limit: "The number of files exceeds the limit",
|
file_exceed_limit: "The number of files exceeds the limit",
|
||||||
import_cover_tip: "Import mode: Overwrite mode description",
|
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_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_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",
|
cover_tip_3: "3. If the interface path and content are consistent with the original interface, no change will be made",
|
||||||
|
|
|
@ -1622,6 +1622,7 @@ export default {
|
||||||
jmeter_export_tip: "通过 JMeter 生成JMX文件",
|
jmeter_export_tip: "通过 JMeter 生成JMX文件",
|
||||||
jmeter_tip: "支持 JMeter5.2-5.4版本的JMX文件",
|
jmeter_tip: "支持 JMeter5.2-5.4版本的JMX文件",
|
||||||
suffixFormatErr: "文件格式不符合要求",
|
suffixFormatErr: "文件格式不符合要求",
|
||||||
|
file_name_to_long: "文件名称过长",
|
||||||
swagger_url_import: "使用URL导入",
|
swagger_url_import: "使用URL导入",
|
||||||
add_request_params: "添加请求参数",
|
add_request_params: "添加请求参数",
|
||||||
optional: "(可选)",
|
optional: "(可选)",
|
||||||
|
|
|
@ -1622,6 +1622,7 @@ export default {
|
||||||
jmeter_export_tip: "通過 JMeter 生成JMX文件",
|
jmeter_export_tip: "通過 JMeter 生成JMX文件",
|
||||||
jmeter_tip: "支持 JMeter5.2-5.4版本的JMX文件",
|
jmeter_tip: "支持 JMeter5.2-5.4版本的JMX文件",
|
||||||
suffixFormatErr: "文件格式不符合要求",
|
suffixFormatErr: "文件格式不符合要求",
|
||||||
|
file_name_to_long: "文件名稱過長",
|
||||||
swagger_url_import: "使用URL導入",
|
swagger_url_import: "使用URL導入",
|
||||||
add_request_params: "添加請求參數",
|
add_request_params: "添加請求參數",
|
||||||
optional: "(可選)",
|
optional: "(可選)",
|
||||||
|
|
Loading…
Reference in New Issue