fix(项目管理): 公共脚本调试问题处理
This commit is contained in:
parent
2437228c3c
commit
2f2aca4c5b
|
@ -259,7 +259,7 @@
|
|||
};
|
||||
await testCommonScript(params);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
loading.value = false;
|
||||
}
|
||||
}
|
||||
// 提交测试请求
|
||||
|
|
|
@ -40,8 +40,7 @@ export const SCRIPT_MENU: CommonScriptMenu[] = [
|
|||
},
|
||||
{
|
||||
title: t('project.processor.paramEnvironmentSetGlobalVariable'),
|
||||
value: `vars.put(\${__metersphere_env_id}+"key","value");
|
||||
vars.put("key","value")`,
|
||||
value: `vars.put(\${__metersphere_env_id}+"key","value");\nvars.put("key","value");`,
|
||||
},
|
||||
{
|
||||
title: t('project.processor.insertPublicScript'),
|
||||
|
|
|
@ -39,8 +39,7 @@ export const SCRIPT_MENU: CommonScriptMenu[] = [
|
|||
},
|
||||
{
|
||||
title: t('project.processor.paramEnvironmentSetGlobalVariable'),
|
||||
value: `vars.put(\${__metersphere_env_id}+"key","value");
|
||||
vars.put("key","value")`,
|
||||
value: `vars.put(\${__metersphere_env_id}+"key","value");\nvars.put("key","value");`,
|
||||
},
|
||||
{
|
||||
title: t('project.processor.insertPublicScript'),
|
||||
|
|
Loading…
Reference in New Issue