feat(接口测试): 调整前后置脚本的默认脚本语言

--bug=1037398 --user=宋天阳 【接口测试】定义-调试-后置-脚本操作默认语言不正确 https://www.tapd.cn/55049933/s/1479340
This commit is contained in:
song-tianyang 2024-03-22 16:33:09 +08:00 committed by 建国
parent 67f438ddb3
commit c88cfa3ad1
5 changed files with 9 additions and 9 deletions

View File

@ -343,13 +343,13 @@
enableCommonScript: false,
script: '',
scriptId: '',
scriptLanguage: LanguageEnum.BEANSHELL,
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
commonScriptInfo: {
id: '',
name: '',
script: '',
params: [{}],
scriptLanguage: LanguageEnum.BEANSHELL,
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
},
});
break;

View File

@ -112,7 +112,7 @@
v-model:model-value="scriptEx"
class="flex-1"
theme="vs"
:language="LanguageEnum.BEANSHELL"
:language="LanguageEnum.BEANSHELL_JSR233"
width="500px"
height="388px"
:show-full-screen="false"
@ -215,7 +215,7 @@
v-model:model-value="condition.commonScriptInfo.script"
theme="vs"
height="100%"
:language="condition.commonScriptInfo.scriptLanguage || LanguageEnum.BEANSHELL"
:language="condition.commonScriptInfo.scriptLanguage || LanguageEnum.BEANSHELL_JSR233"
:show-full-screen="false"
:show-theme-change="false"
read-only

View File

@ -145,13 +145,13 @@
enable: true,
script: '',
scriptId: '',
scriptLanguage: LanguageEnum.BEANSHELL,
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
commonScriptInfo: {
id: '',
name: '',
script: '',
params: [],
scriptLanguage: LanguageEnum.BEANSHELL,
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
},
});

View File

@ -54,7 +54,7 @@
processorType: RequestConditionProcessor.SCRIPT,
enableCommonScript: false,
script: '',
scriptLanguage: LanguageEnum.BEANSHELL,
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
commonScriptInfo: {},
} as ExecuteConditionProcessor;
const scriptName = ref(props.name || '');
@ -74,7 +74,7 @@
processorType: RequestConditionProcessor.SCRIPT,
enableCommonScript: false,
script: '',
scriptLanguage: LanguageEnum.BEANSHELL,
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
commonScriptInfo: {},
} as ExecuteConditionProcessor;
}

View File

@ -224,7 +224,7 @@
projectId: '',
params: '',
script: '',
type: LanguageEnum.BEANSHELL,
type: LanguageEnum.BEANSHELL_JSR233,
result: '',
};