diff --git a/frontend/src/business/components/settings/project/function/ScriptNavMenu.vue b/frontend/src/business/components/settings/project/function/ScriptNavMenu.vue index d8c792ab24..7c0f48c6ab 100644 --- a/frontend/src/business/components/settings/project/function/ScriptNavMenu.vue +++ b/frontend/src/business/components/settings/project/function/ScriptNavMenu.vue @@ -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);