Commit 4c342467 authored by 八千流's avatar 八千流 Committed by 老广

[Bugfix] 修复批量执行命令没有选择资产bug (#2894)

* [Bugfix] 修复批量执行命令没有选择资产bug

* [Bugfix] 修复批量执行命令没有选择资产bug(2)
parent 0809916b
......@@ -136,10 +136,12 @@ function getSelectedAssetsNode() {
nodes.forEach(function (node) {
if (node.meta.type === 'asset' && !node.isHidden) {
var protocols = node.meta.asset.protocols;
if (assetsNodeId.indexOf(node.id) === -1 && protocols.indexOf("ssh") > -1) {
assetsNodeId.push(node.id);
assetsNode.push(node)
}
protocols.forEach(function (val) {
if (assetsNodeId.indexOf(node.id) === -1 && val.indexOf("ssh") > -1) {
assetsNodeId.push(node.id);
assetsNode.push(node)
}
});
}
});
return assetsNode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment