12345678910111213141516171819202122232425262728293031323334 |
- import { createStore } from 'vuex'
- export default createStore({
- state: {
- sysConfig: {
- autoNext: true,
- autoRead: false,
- autoRed: false
- }
- },
- getters: {
- },
- mutations: {
- SET_SYSCONFIG(store, sysConfig: {
- autoNext: boolean,
- autoRead: boolean,
- autoRed: boolean
- }) {
- store.sysConfig = sysConfig
- return store
- }
- },
- actions: {
- LoginOut() {
- localStorage.setItem('token', '')
- }
- },
- modules: {
- }
- })
|