* 卸载当前项目数据
()
| 244 | * 卸载当前项目数据 |
| 245 | */ |
| 246 | unload() { |
| 247 | if (this.documents.length < 1) { |
| 248 | return; |
| 249 | } |
| 250 | for (let i = this.documents.length - 1; i >= 0; i--) { |
| 251 | this.documents[i].remove(); |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | removeDocument(doc: IDocumentModel) { |
| 256 | const index = this.documents.indexOf(doc); |
no test coverage detected