From 61900b1f71f4c9048cbc48ed6f4b41ccfa1a6ce4 Mon Sep 17 00:00:00 2001 From: yyg1378265336 <1378265336@qq.com> Date: 星期三, 26 二月 2025 09:16:16 +0800 Subject: [PATCH] 工具属性、工具信息页面初次编写 --- src/store/index.ts | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/store/index.ts b/src/store/index.ts index 9ceca5a..e87f21a 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -1,12 +1,16 @@ import type { App } from 'vue'; import { createPinia } from 'pinia'; import { registerPiniaPersistPlugin } from '@/store/plugin/persist'; +import { useWebSocketStore } from '/@/store/modules/websocket'; const store = createPinia(); registerPiniaPersistPlugin(store); export function setupStore(app: App<Element>) { app.use(store); + + const webSocketStore = useWebSocketStore(); + webSocketStore.connectWebSocket(); } export { store }; -- Gitblit v1.9.3