Sign in

cnlive_project / cnlive-community-web-vue · Files

GitLab

  • Back to group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • cnlive-community-web-vue
  • src
  • store
  • index.ts
  • set up
    30216083
    杨泽宇 authored
    2021-12-28 11:25:52 +0800  
    Browse Code »
index.ts 307 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import { createStore } from 'vuex'
import createPersistedState from 'vuex-persistedstate'

export default createStore(
  {
    state: {
      token: '123123123'
    },
    mutations: {},
    actions: {},
    modules: {},
    plugins: [createPersistedState({
      storage: window.localStorage
    })],
  }
)