fix: 代码模版错误#1006923

--bug=1006923 --user=lyh 【github#1598】脚本的代码模版错误
https://www.tapd.cn/55049933/s/1052016
This commit is contained in:
shiziyuan9527 2021-09-26 18:17:15 +08:00 committed by shiziyuan9527
parent 7f0bd60858
commit 0f794b0802
1 changed files with 8 additions and 0 deletions

View File

@ -154,6 +154,14 @@ export default {
return;
}
} else {
// todo
if (this.language !== 'beanshell' && this.language !== 'groovy') {
if (obj.title === this.$t('api_test.request.processor.code_add_report_length') ||
obj.title === this.$t('api_test.request.processor.code_hide_report_length')) {
this.$warning("无对应的 "+ this.language +" 代码模版!");
return;
}
}
code = obj.value;
}
this.handleCodeTemplate(code);