diff --git a/frontend/src/business/components/api/definition/components/ApiVariable.vue b/frontend/src/business/components/api/definition/components/ApiVariable.vue
index daaf50c216..0d050057e7 100644
--- a/frontend/src/business/components/api/definition/components/ApiVariable.vue
+++ b/frontend/src/business/components/api/definition/components/ApiVariable.vue
@@ -91,7 +91,8 @@
+ :current-item="currentItem"
+ @advancedRefresh="reload"/>
4) {
this.$info(this.$t('api_test.request.parameters_advance_add_func_limit'));
return;
@@ -273,7 +278,11 @@
this.mockVariableFuncs.push({name: '', params: []});
},
saveAdvanced() {
- this.currentItem.value = this.itemValue;
+ if(this.itemValue.indexOf('@') == -1){
+ this.currentItem.value = '@' + this.itemValue;
+ } else {
+ this.currentItem.value = this.itemValue;
+ }
this.itemValueVisible = false;
this.mockVariableFuncs = [];
this.$emit('advancedRefresh', this.itemValue);