mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-03 00:41:15 +00:00
1.ai连接报错(完成)
2.crud后的前端列表高度(完成) 3.代码生成批量选中(完成) 4.登录背景动态展示(完成) 5.代码生成表单宽度调整(完成)
This commit is contained in:
@@ -7,10 +7,9 @@
|
||||
* - 在线用户计数 WebSocket
|
||||
* - 其他业务 WebSocket
|
||||
*
|
||||
* @author 有来技术团队
|
||||
* @author fastapiadmin
|
||||
*/
|
||||
|
||||
import { useDictSync } from "@/composables";
|
||||
import { Auth } from "@/utils/auth";
|
||||
|
||||
/**
|
||||
@@ -32,7 +31,6 @@ const websocketInstances = new Map<string, WebSocketService>();
|
||||
* 防止重复初始化的状态标记
|
||||
*/
|
||||
let isInitialized = false;
|
||||
let dictWebSocketInstance: ReturnType<typeof useDictSync> | null = null;
|
||||
|
||||
/**
|
||||
* 注册 WebSocket 实例
|
||||
@@ -63,8 +61,6 @@ export function setupWebSocket() {
|
||||
}
|
||||
|
||||
try {
|
||||
dictWebSocketInstance = useDictSync();
|
||||
registerWebSocketInstance("dict-sync", dictWebSocketInstance);
|
||||
isInitialized = true;
|
||||
console.log("[WebSocket] 初始化成功");
|
||||
} catch (error) {
|
||||
@@ -94,7 +90,6 @@ export function cleanupWebSocket() {
|
||||
});
|
||||
|
||||
websocketInstances.clear();
|
||||
dictWebSocketInstance = null;
|
||||
isInitialized = false;
|
||||
console.log("[WebSocket] 清理完成");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user