浏览代码

首页统计

zs 8 月之前
父节点
当前提交
029601978a
共有 1 个文件被更改,包括 22 次插入0 次删除
  1. 22 0
      src/store/statistics.js

+ 22 - 0
src/store/statistics.js

@@ -0,0 +1,22 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+Vue.use(Vuex);
+const api = {
+  test: `/index`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.test}`, payload);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};