guhongwei hace 5 años
padre
commit
5b88fb83a7
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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;
   },