fix(UI 自动化): 场景导入后,步骤序号显示显示不正确

--bug=1013372 --user=张大海 【UI测试】场景导入后,步骤序号显示显示不正确 https://www.tapd.cn/55049933/s/1166584
This commit is contained in:
zhangdahai112 2022-05-27 14:35:39 +08:00 committed by zhangdahai112
parent 720db92e00
commit 56ec3925ba
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ export function savePreciseEnvProjectIds(projectIds, envMap) {
export function scenarioSort(_this) {
for (let i in _this.scenarioDefinition) {
// 排序
_this.scenarioDefinition[i].index = Number(i) + 1;
_this.$set(_this.scenarioDefinition[i], 'index', Number(i) + 1);
// 设置循环控制
if (_this.scenarioDefinition[i].type === ELEMENT_TYPE.LoopController && _this.scenarioDefinition[i].hashTree
&& _this.scenarioDefinition[i].hashTree.length > 1) {