fix(接口测试): 修复同名场景带空格可以正常保存的缺陷
--bug=1025737 --user=王孝刚 【接口测试】github#23886,场景名称是否同名校验错误,导致场景列表同名场景很多,不好区分 https://www.tapd.cn/55049933/s/1366284
This commit is contained in:
parent
ef6e2c8b2b
commit
c92461d399
|
@ -1883,6 +1883,7 @@ export default {
|
|||
if (this.currentScenario.scenarioDefinitionOrg){
|
||||
delete this.currentScenario['scenarioDefinitionOrg'];
|
||||
}
|
||||
this.currentScenario.name = this.currentScenario.name.trim();
|
||||
await saveScenario(this.path, this.currentScenario, this.scenarioDefinition, this, (response) => {
|
||||
this.$success(this.$t('commons.save_success'));
|
||||
this.isPreventReClick = false;
|
||||
|
|
Loading…
Reference in New Issue