From c832bf2e80ac465e71b7a1c1f7a59d4252030989 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 05 Aug 2025 17:33:08 +0800
Subject: [PATCH] feat:事件工单滚动条

---
 src/store/index.js |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/src/store/index.js b/src/store/index.js
index a764d4b..1031593 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,9 +1,21 @@
-import { createStore } from 'vuex';
+/*
+ * @Author: shuishen 1109946754@qq.com
+ * @Date: 2024-09-09 11:40:40
+ * @LastEditors: shuishen 1109946754@qq.com
+ * @LastEditTime: 2024-09-10 11:56:26
+ * @FilePath: \drone-web-manage\src\store\index.js
+ * @Description:
+ *
+ * Copyright (c) 2024 by shuishen, All Rights Reserved.
+ */
+import { createStore, useStore } from 'vuex';
 import user from './modules/user';
 import common from './modules/common';
 import tags from './modules/tags';
 import logs from './modules/logs';
 import dict from './modules/dict';
+import task from './modules/task';
+import device from './modules/device';
 import getters from './getters';
 
 const store = createStore({
@@ -13,8 +25,16 @@
     logs,
     tags,
     dict,
+    device,
+    task,
   },
   getters,
 });
 
 export default store;
+
+export const storeKey = Symbol('');
+
+export function useMyStore() {
+  return useStore(storeKey);
+}

--
Gitblit v1.9.3