Jelajahi Sumber

首页统计

zs 8 bulan lalu
induk
melakukan
029601978a
1 mengubah file dengan 22 tambahan dan 0 penghapusan
  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,
+};