From 02409bfbe15f22fc3b5dccadabfd860a660a49d9 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 11 Oct 2025 10:37:14 +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