()
| 139 | this.db = null; |
| 140 | await this.createDefaultConfig(); |
| 141 | } |
| 142 | |
| 143 | static cleanup(): void { |
| 144 | // 引用重置:清空静态 db 和初始化标志,便于 reload 后重新初始化。 |
| 145 | this.db = null; |
| 146 | this.initialized = false; |
| 147 | this.isWriting = false; |
| 148 | } |
no test coverage detected