commands/web结构性优化

This commit is contained in:
xintaofei
2026-03-25 16:19:00 +08:00
parent 218055ab01
commit 8c67bb60f4
4 changed files with 42 additions and 142 deletions

View File

@@ -32,10 +32,6 @@ impl WebEventBroadcaster {
pub fn subscribe(&self) -> broadcast::Receiver<WebEvent> {
self.sender.subscribe()
}
pub fn has_subscribers(&self) -> bool {
self.sender.receiver_count() > 0
}
}
/// Unified event emission: sends to both Tauri webview and Web clients.