* 将一个节点推送到现有数组中 * @param $node
($node)
| 130 | * @param $node |
| 131 | */ |
| 132 | function pushDocumentCategory($node) { |
| 133 | for (var index in window.documentCategory){ |
| 134 | var item = window.documentCategory[index]; |
| 135 | if(item.id === $node.id){ |
| 136 | |
| 137 | window.documentCategory[index] = $node; |
| 138 | return; |
| 139 | } |
| 140 | } |
| 141 | window.documentCategory.push($node); |
| 142 | } |
| 143 | /** |
| 144 | * 将数据重置到Vue列表中 |
| 145 | * @param $lists |
no outgoing calls
no test coverage detected