index.ts 429 B

12345678910111213141516171819202122
  1. import { localData, sessionData } from './modules/storage'
  2. import commonStore from './modules/common'
  3. import accountStore from './modules/account'
  4. import futuresStore from './modules/futures'
  5. /**
  6. * 重置数据
  7. */
  8. const resetStore = () => {
  9. localData.clear()
  10. sessionData.clear()
  11. accountStore.reset()
  12. }
  13. export {
  14. localData,
  15. sessionData,
  16. commonStore,
  17. accountStore,
  18. futuresStore,
  19. resetStore,
  20. }