|
@@ -10,7 +10,7 @@ const state = () => ({});
|
|
const mutations = {};
|
|
const mutations = {};
|
|
|
|
|
|
const actions = {
|
|
const actions = {
|
|
- async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
|
|
|
|
|
|
+ async query({ commit }, { skip = 0, limit = 0, ...info } = {}) {
|
|
const res = await this.$axios.$get(api.interface, { skip, limit, ...info });
|
|
const res = await this.$axios.$get(api.interface, { skip, limit, ...info });
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
@@ -30,6 +30,10 @@ const actions = {
|
|
const res = await this.$axios.$delete(`${api.interface}/${payload}`);
|
|
const res = await this.$axios.$delete(`${api.interface}/${payload}`);
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
|
|
+ async restore({ commit }, payload) {
|
|
|
|
+ const res = await this.$axios.$post(`${api.interface}/restore/${payload}`);
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
async login({ commit }, payload) {
|
|
async login({ commit }, payload) {
|
|
const res = await this.$axios.$post(`${api.interface}/login`, payload);
|
|
const res = await this.$axios.$post(`${api.interface}/login`, payload);
|
|
if (res.errcode === 0) {
|
|
if (res.errcode === 0) {
|