mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复批量执行命令没有选择资产bug (#2894)
* [Bugfix] 修复批量执行命令没有选择资产bug * [Bugfix] 修复批量执行命令没有选择资产bug(2)pull/2898/head
parent
0809916b01
commit
4c34246750
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue