From 6a7257f9d8f659c508cf826726126c0fa4363eef Mon Sep 17 00:00:00 2001
From: YangYuGang <1378265336@qq.com>
Date: 星期一, 14 四月 2025 17:04:39 +0800
Subject: [PATCH] 盘点单没有数据时一直加载中

---
 src/store/index.ts |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/store/index.ts b/src/store/index.ts
index efaf6c9..e87f21a 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -1,10 +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