Ver Fonte

修复编译报错

lxylxy123321 há 3 dias atrás
pai
commit
8f06983cfe
1 ficheiros alterados com 0 adições e 3 exclusões
  1. 0 3
      frontend/src/api/websocket.ts

+ 0 - 3
frontend/src/api/websocket.ts

@@ -2,7 +2,6 @@ class WSManager {
   private ws: WebSocket | null = null
   private handlers: Map<string, Set<(msg: Record<string, unknown>) => void>> = new Map()
   private reconnectTimer: ReturnType<typeof setTimeout> | null = null
-  private url: string | null = null
 
   connect(baseUrl?: string) {
     if (this.ws) return
@@ -15,8 +14,6 @@ class WSManager {
       wsUrl += wsUrl.includes('?') ? '&' : '?'
       wsUrl += `token=${encodeURIComponent(token)}`
     }
-    this.url = wsUrl
-
     try {
       this.ws = new WebSocket(wsUrl)
     } catch {