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