按 bin 删除登记(停指定版本时用——bin 是实例唯一键,避免误删同模块其它版本)
(type: string, bins: string[])
| 121 | |
| 122 | /** 按 bin 删除登记(停指定版本时用——bin 是实例唯一键,避免误删同模块其它版本) */ |
| 123 | delByBin(type: string, bins: string[]) { |
| 124 | if (!this.servicePID[type]) { |
| 125 | return |
| 126 | } |
| 127 | this.servicePID[type] = this.servicePID[type].filter((item) => !bins.includes(item.item?.bin)) |
| 128 | this.emitChange(type) |
| 129 | } |
| 130 | |
| 131 | /** 删除某模块全部登记(停整个模块时用) */ |
| 132 | delAll(type: string) { |
no test coverage detected