ae2f7b7ab6f5ce37b38aa7d96e37d52e91d35908.svn-base 491 B

12345678910111213141516171819202122232425
  1. import Vue from 'vue'
  2. import { ONL_AUTH_FIELDS } from "@/store/mutation-types"
  3. import { getAction } from '@/api/manage'
  4. const online = {
  5. state: {
  6. //存储对象属性 value,text
  7. authFields: [],
  8. },
  9. mutations: {
  10. SET_AUTHFIELDS: (state, fields) => {
  11. console.log('fields',fields)
  12. Vue.set(state, 'authFields', fields)
  13. }
  14. },
  15. actions: {
  16. // TODO 如果没找到可以尝试请求一下
  17. xxxxxx({ commit }, userInfo) {
  18. }
  19. }
  20. }
  21. export default online