From 0ed0a3d53dd122ff6f48865d77748b4e2a244643 Mon Sep 17 00:00:00 2001 From: yanghang Date: Wed, 2 Jul 2025 11:07:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/socket.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/socket.js b/src/api/socket.js index 118d521a..5abf5514 100644 --- a/src/api/socket.js +++ b/src/api/socket.js @@ -1,4 +1,5 @@ -import { goto_login_fun } from '@/api/requestexport default class WebSocketUtil { +import { goto_login_fun } from '@/api/request' +export default class WebSocketUtil { /** * WebSocket工具类,用于管理WebSocket连接 * @param {string} url - WebSocket服务器地址 @@ -197,7 +198,7 @@ import { goto_login_fun } from '@/api/requestexport default class WebSocketUtil } else { console.error('达到最大重连次数,停止尝试'); this.triggerEvent('error', new Error('达到最大重连次数')); - goto_login_fun() + goto_login_fun() } }