refactor(web-antd): 优化 WebSocket 初始化和管理

- 在 auth store 中添加 WebSocket 初始化和断开逻辑
This commit is contained in:
2025-09-02 14:56:41 +08:00
parent b91d073b8d
commit ea3b61ea8b
2 changed files with 63 additions and 52 deletions

View File

@@ -16,7 +16,6 @@ import { initComponentAdapter } from './adapter/component'
import { initSetupVbenForm } from './adapter/form'
import App from './app.vue'
import { router } from './router'
import { initWebSocket } from '#/api/websocket'
@@ -54,9 +53,6 @@ async function bootstrap(namespace: string) {
// 配置 pinia-tore
await initStores(app, { namespace })
// 初始化WebSocket
initWebSocket()
// 安装权限指令
registerAccessDirective(app)