()
| 220 | |
| 221 | // 切换聊天窗口显示/隐藏 |
| 222 | toggle() { |
| 223 | console.log('ChatInterface.toggle() 被调用'); |
| 224 | console.log('切换前 isVisible:', this.isVisible); |
| 225 | |
| 226 | if (this.isVisible) { |
| 227 | this.hide(); |
| 228 | } else { |
| 229 | this.show(); |
| 230 | } |
| 231 | |
| 232 | console.log('切换后 isVisible:', this.isVisible); |
| 233 | } |
| 234 | |
| 235 | // 显示聊天窗口 |
| 236 | show() { |
no test coverage detected