| | |
| | | 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({ |
| | |
| | | logs, |
| | | tags, |
| | | dict, |
| | | device, |
| | | task, |
| | | }, |
| | | getters, |
| | | }); |
| | | |
| | | export default store; |
| | | |
| | | export const storeKey = Symbol(''); |
| | | |
| | | export function useMyStore() { |
| | | return useStore(storeKey); |
| | | } |