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