refactor(web-antd): 优化 WebSocket 初始化和管理
- 在 auth store 中添加 WebSocket 初始化和断开逻辑
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user