Update minderUtils.js

This commit is contained in:
jianxing 2021-11-10 17:50:59 +08:00
parent 6e23dd467b
commit c766dd9349
1 changed files with 4 additions and 4 deletions

View File

@ -354,15 +354,15 @@ export function tagBatch(distinctTags) {
});
}
export function isModuleNode(node) {
return isModuleNodeData(node.data);
}
export function isModuleNodeData(data) {
let resource = data ? data.resource : null;
return data.type === 'node' || (resource && resource.indexOf(i18n.t('test_track.module.module')) > -1);
}
export function isModuleNode(node) {
return isModuleNodeData(node.data);
}
export function tagEditCheck(resourceName) {
let minder = window.minder;
let selectNodes = minder.getSelectedNodes();