帧视界壹通告,付费看视频的微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
455 B

11 months ago
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. Vue.use(Vuex); //vue的插件机制
  4. import api from '@/api/api.js'
  5. //Vuex.Store 构造器选项
  6. const store = new Vuex.Store({
  7. state: {
  8. configList: [], //配置列表
  9. count : 10,
  10. },
  11. getters: {},
  12. mutations: {
  13. // 初始化配置
  14. initConfig(state){
  15. api('getConfig', res => {
  16. if(res.code == 200){
  17. state.configList = res.result
  18. }
  19. })
  20. },
  21. },
  22. actions: {},
  23. })
  24. export default store