fix(UI 自动化): 导入新增的ide文件,执行查看报告步骤没有国际化

--bug=1013819 --user=张大海 【UI测试】导入side文件,直接执行,步骤名称显示错误 https://www.tapd.cn/55049933/s/1175220
This commit is contained in:
zhangdahai112 2022-06-07 19:49:18 +08:00 committed by f2c-ci-robot[bot]
parent 23e761f897
commit 072a482032
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ export default {
hashTree.forEach(item => {
if (item.enable) {
item.parentIndex = fullPath ? fullPath + "_" + item.index : item.index;
if (item.command === item.name) {
if (item.type && item.type === "MsUiCommand" && item.command === item.name) {
item.name = this.$t("ui." + item.name);
}
let name = item.name ? item.name : this.getType(item.type);