|
@@ -4,19 +4,28 @@ import _ from 'lodash';
|
|
Vue.use(Vuex);
|
|
Vue.use(Vuex);
|
|
const api = {
|
|
const api = {
|
|
userInfo: `/api/market/user`,
|
|
userInfo: `/api/market/user`,
|
|
|
|
+ operaInfo: `/api/market/operationlog`,
|
|
};
|
|
};
|
|
const state = () => ({});
|
|
const state = () => ({});
|
|
const mutations = {};
|
|
const mutations = {};
|
|
|
|
|
|
const actions = {
|
|
const actions = {
|
|
async query({ commit }, { skip = 0, limit, ...info } = {}) {
|
|
async query({ commit }, { skip = 0, limit, ...info } = {}) {
|
|
- const res = await this.$axios.$get(`${api.userInfo}`, { skip, limit, ...info });
|
|
|
|
|
|
+ const res = await this.$axios.$get(`${api.userInfo}`, {
|
|
|
|
+ skip,
|
|
|
|
+ limit,
|
|
|
|
+ ...info,
|
|
|
|
+ });
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
async create({ commit }, payload) {
|
|
async create({ commit }, payload) {
|
|
const res = await this.$axios.$post(`${api.userInfo}`, payload);
|
|
const res = await this.$axios.$post(`${api.userInfo}`, payload);
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
|
|
+ async operaFetch({ commit }, payload) {
|
|
|
|
+ const res = await this.$axios.$get(`${api.operaInfo}/${payload}`);
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
async fetch({ commit }, payload) {
|
|
async fetch({ commit }, payload) {
|
|
const res = await this.$axios.$get(`${api.userInfo}/${payload}`);
|
|
const res = await this.$axios.$get(`${api.userInfo}/${payload}`);
|
|
return res;
|
|
return res;
|