refactor(接口测试): 修改全局变量代码模版

This commit is contained in:
chenjianxing 2020-10-26 09:59:40 +08:00
parent 45c2022424
commit a0b2dbb53e
1 changed files with 2 additions and 2 deletions

View File

@ -42,11 +42,11 @@
}, },
{ {
title: this.$t('api_test.request.processor.code_template_get_global_variable'), title: this.$t('api_test.request.processor.code_template_get_global_variable'),
value: '${__P("variable_name")}', value: 'props.get("variable_name")',
}, },
{ {
title: this.$t('api_test.request.processor.code_template_set_global_variable'), title: this.$t('api_test.request.processor.code_template_set_global_variable'),
value: '${__setProperty("variable_name","variable_value",)}', value: 'props.put("variable_name", "variable_value")',
}, },
{ {
title: this.$t('api_test.request.processor.code_template_get_response_header'), title: this.$t('api_test.request.processor.code_template_get_response_header'),