无人机管理后台前端(已迁走)
罗广辉
2025-10-11 02409bfbe15f22fc3b5dccadabfd860a660a49d9
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);
}