fix(接口测试): 修复场景多个tab时显示名称错误的缺陷

--bug=1032249 --user=王孝刚 【接口测试】打开多个tab页签-保存场景时-场景名称显示非当前选中的场景
https://www.tapd.cn/55049933/s/1429164
This commit is contained in:
wxg0103 2023-10-20 17:22:24 +08:00 committed by Craftsman
parent 713a4e1342
commit d5ed574528
1 changed files with 1 additions and 1 deletions

View File

@ -734,7 +734,7 @@ export default {
setTabTitle(data) {
for (let index in this.tabs) {
let tab = this.tabs[index];
if (tab && tab.name === this.activeName) {
if (tab && tab.currentScenario && tab.currentScenario.id === data.id) {
tab.label = data.name;
break;
}