guhongwei 5 роки тому
батько
коміт
5b88fb83a7
2 змінених файлів з 2 додано та 2 видалено
  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;
   },