Blame view

ant-design-vue-jeecg/src/store/modules/online.js 486 Bytes
肖超群 authored
1
import Vue from 'vue'
肖超群 authored
2
3
import {ONL_AUTH_FIELDS} from "@/store/mutation-types"
import {getAction} from '@/api/manage'
肖超群 authored
4
5
6
7
8
9
10
11
12


const online = {
  state: {
    //存储对象属性 value,text
    authFields: [],
  },
  mutations: {
    SET_AUTHFIELDS: (state, fields) => {
肖超群 authored
13
      console.log('fields', fields)
肖超群 authored
14
15
16
17
18
      Vue.set(state, 'authFields', fields)
    }
  },
  actions: {
    // TODO 如果没找到可以尝试请求一下
肖超群 authored
19
    xxxxxx({commit}, userInfo) {
肖超群 authored
20
21
22
23
24
25
    }

  }
}

export default online