fix(项目管理): 公共脚本调试问题处理

This commit is contained in:
fit2-zhao 2024-03-14 11:12:05 +08:00 committed by Craftsman
parent 2437228c3c
commit 2f2aca4c5b
3 changed files with 3 additions and 5 deletions

View File

@ -259,7 +259,7 @@
};
await testCommonScript(params);
} catch (error) {
console.log(error);
loading.value = false;
}
}
//

View File

@ -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'),

View File

@ -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'),