site.js 420 B

12345678910111213141516171819202122
  1. import Vue from 'vue';
  2. import Vuex from 'vuex';
  3. import _ from 'lodash';
  4. Vue.use(Vuex);
  5. const api = {
  6. shows: `/api/setting/set/show`,
  7. };
  8. const state = () => ({});
  9. const mutations = {};
  10. const actions = {
  11. async showInfo({ commit }, { ...info } = {}) {
  12. const res = await this.$axios.$get(`${api.shows}`, { ...info });
  13. return res;
  14. },
  15. };
  16. export default {
  17. namespaced: true,
  18. state,
  19. mutations,
  20. actions,
  21. };