()
| 667 | await this.initializeDefaultConfig(); |
| 668 | } |
| 669 | |
| 670 | // 开关管理方法 |
| 671 | public isEnabled(): boolean { |
| 672 | return this.config.enabled === true; // 默认false,只有明确设置为true才启用 |
| 673 | } |
| 674 | |
| 675 | public async setEnabled(enabled: boolean): Promise<void> { |
no test coverage detected