fix(接口测试): 修复创建接口自动化场景后,直接点击关闭按钮,为空提示undefined的缺陷

--bug=1013742 --user=王孝刚 【接口测试】创建接口自动化场景后,直接点击关闭按钮,为空提示undefined
https://www.tapd.cn/55049933/s/1173496
This commit is contained in:
wxg0103 2022-06-06 11:11:55 +08:00 committed by f2c-ci-robot[bot]
parent 2dd94a3e96
commit b504f74593
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ export default {
if (tab.name === targetName) {
this.diff(tab);
if (tab && this.isSave) {
message += tab.currentScenario.name + "";
message += tab.currentScenario.name ? tab.currentScenario.name : this.$t('api_test.automation.add_scenario') + "";
}
}
})