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;
   },