fix(接口测试): 参数设置直接点击添加函数报错问题修复
This commit is contained in:
parent
e87bf2af35
commit
5ea8ceca25
|
@ -511,6 +511,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addFunc() {
|
addFunc() {
|
||||||
|
if(this.itemValue == undefined || this.itemValue == null){
|
||||||
|
this.$warning(this.$t('api_test.request.parameters_advance_add_mock_error'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(this.itemValue.indexOf('@') == -1){
|
if(this.itemValue.indexOf('@') == -1){
|
||||||
this.itemValue = '@' + this.itemValue;
|
this.itemValue = '@' + this.itemValue;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1456,6 +1456,7 @@ export default {
|
||||||
parameters_advance_add_func: "Add Function",
|
parameters_advance_add_func: "Add Function",
|
||||||
parameters_advance_add_func_limit: "Support up to 5 functions",
|
parameters_advance_add_func_limit: "Support up to 5 functions",
|
||||||
parameters_advance_add_func_error: "Please select function first",
|
parameters_advance_add_func_error: "Please select function first",
|
||||||
|
parameters_advance_add_mock_error: "Please select mock data first",
|
||||||
parameters_advance_add_param_error: "Please enter function parameters",
|
parameters_advance_add_param_error: "Please enter function parameters",
|
||||||
parameters_desc: "Parameters will be appended to the URL e.g. https://fit2cloud.com?Name=Value&Name2=Value2",
|
parameters_desc: "Parameters will be appended to the URL e.g. https://fit2cloud.com?Name=Value&Name2=Value2",
|
||||||
headers: "Headers",
|
headers: "Headers",
|
||||||
|
|
|
@ -1461,6 +1461,7 @@ export default {
|
||||||
parameters_advance_add_func: "添加函数",
|
parameters_advance_add_func: "添加函数",
|
||||||
parameters_advance_add_func_limit: "最多支持5个函数",
|
parameters_advance_add_func_limit: "最多支持5个函数",
|
||||||
parameters_advance_add_func_error: "请先选择函数",
|
parameters_advance_add_func_error: "请先选择函数",
|
||||||
|
parameters_advance_add_mock_error: "请先选择mock数据",
|
||||||
parameters_advance_add_param_error: "请输入函数参数",
|
parameters_advance_add_param_error: "请输入函数参数",
|
||||||
parameters_desc: "参数追加到URL,例如https://fit2cloud.com/entries?key1=Value1&Key2=Value2",
|
parameters_desc: "参数追加到URL,例如https://fit2cloud.com/entries?key1=Value1&Key2=Value2",
|
||||||
headers: "请求头",
|
headers: "请求头",
|
||||||
|
|
|
@ -1461,6 +1461,7 @@ export default {
|
||||||
parameters_advance_add_func: "添加函數",
|
parameters_advance_add_func: "添加函數",
|
||||||
parameters_advance_add_func_limit: "最多支持5個函數",
|
parameters_advance_add_func_limit: "最多支持5個函數",
|
||||||
parameters_advance_add_func_error: "請先選擇函數",
|
parameters_advance_add_func_error: "請先選擇函數",
|
||||||
|
parameters_advance_add_mock_error: "請先選擇mock數據",
|
||||||
parameters_advance_add_param_error: "請輸入函數參數",
|
parameters_advance_add_param_error: "請輸入函數參數",
|
||||||
parameters_desc: "參數追加到URL,例如https://fit2cloud.com/entries?key1=Value1&Key2=Value2",
|
parameters_desc: "參數追加到URL,例如https://fit2cloud.com/entries?key1=Value1&Key2=Value2",
|
||||||
headers: "請求頭",
|
headers: "請求頭",
|
||||||
|
|
Loading…
Reference in New Issue