(views: SolidViewDataType[])
| 193 | } |
| 194 | |
| 195 | public addViews(views: SolidViewDataType[]): void { |
| 196 | if (isNil(this.currentPage)) { |
| 197 | return; |
| 198 | } |
| 199 | forEach(views, (item) => { |
| 200 | this.currentPage?.views.push(item); |
| 201 | this.viewMap.set(`${item.id}`, item); |
| 202 | this.views.push(item); |
| 203 | }); |
| 204 | } |
| 205 | |
| 206 | public setViews(views: SolidViewDataType[]): void { |
| 207 | if (isNil(this.currentPage)) { |