refactor(接口测试): 优化tcp协议raw参数为空时转xml的提示信息
--bug=1027655 --user=王孝刚 【接口测试】github#25462,【接口测试】-接口定义-TCP-转XML数据-未填写数据提示数据为空 https://www.tapd.cn/55049933/s/1390945
This commit is contained in:
parent
b1d773f2a6
commit
03b7ab74ef
|
@ -357,6 +357,10 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
toXml() {
|
||||
if (!this.request.rawDataStruct) {
|
||||
this.$warning(this.$t('api_definition.raw_not_null'));
|
||||
return;
|
||||
}
|
||||
this.result = definitionRawToXML({
|
||||
stringData: this.request.rawDataStruct,
|
||||
}).then((response) => {
|
||||
|
|
|
@ -39,6 +39,7 @@ const message = {
|
|||
auto_redirects: 'Auto redirects',
|
||||
},
|
||||
document_tooltip: 'Only valid for displayed parameters',
|
||||
raw_not_null: 'Raw data cannot be empty',
|
||||
},
|
||||
filters: {
|
||||
schedule: {
|
||||
|
|
|
@ -37,6 +37,7 @@ const message = {
|
|||
auto_redirects: '自动重定向',
|
||||
},
|
||||
document_tooltip: '仅对已展示的参数生效',
|
||||
raw_not_null: 'raw数据不能为空',
|
||||
},
|
||||
filters: {
|
||||
schedule: {
|
||||
|
|
|
@ -37,6 +37,7 @@ const message = {
|
|||
auto_redirects: '自動重定向',
|
||||
},
|
||||
document_tooltip: '僅對已顯示的參與數據生成效率',
|
||||
raw_not_null: 'raw數據不能為空',
|
||||
},
|
||||
filters: {
|
||||
schedule: {
|
||||
|
|
Loading…
Reference in New Issue