fix(测试跟踪): 英文状态下编辑模块失败

--bug=1009067 --user=lyh 【测试跟踪】英文状态下编辑已有模块失败
https://www.tapd.cn/55049933/s/1092771
This commit is contained in:
shiziyuan9527 2022-01-17 11:04:11 +08:00 committed by shiziyuan9527
parent 057451ca0c
commit d90308c668
1 changed files with 2 additions and 1 deletions

View File

@ -211,7 +211,8 @@ name: "TestCaseMinder",
}
if (data.type !== 'tmp' && data.changed) {
if (data.contextChanged && data.resource && data.resource.indexOf(this.$t('test_track.module.module')) > -1) {
if (data.contextChanged && data.resource &&
(data.resource.indexOf(this.$t('test_track.module.module')) > -1 || data.resource.indexOf("模块") > -1)) {
this.buildSaveModules(root, data, parent);
root.children && root.children.forEach(i => {
if (isModuleNode(i)) {