guhongwei 5 years ago
parent
commit
5b88fb83a7
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/store/codeCategory.js
  2. 1 1
      src/store/codeitem.js

+ 1 - 1
src/store/codeCategory.js

@@ -9,7 +9,7 @@ const state = () => ({});
 const mutations = {};
 
 const actions = {
-  async query({ commit }, { skip = 0, limit, ...info } = {}) {
+  async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
     const res = await this.$axios.$get(api.interface, { skip, limit, ...info });
     return res;
   },

+ 1 - 1
src/store/codeitem.js

@@ -9,7 +9,7 @@ const state = () => ({});
 const mutations = {};
 
 const actions = {
-  async query({ commit }, { skip = 0, limit, ...info } = {}) {
+  async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
     const res = await this.$axios.$get(api.interface, { skip, limit, ...info });
     return res;
   },