Browse Source

管理后台-全局数据获取条数

panyong 3 years ago
parent
commit
3cc80167f8
1 changed files with 4 additions and 4 deletions
  1. 4 4
      htmldev/manage/src/store/modules/common.js

+ 4 - 4
htmldev/manage/src/store/modules/common.js

@@ -57,28 +57,28 @@ const actions = {
   },
   // 获取门店列表
   async fetchOutletList ({ commit }) {
-    const { code, data } = await fetch('/api/admin/v1/bar/list?page=1&page_size=10000&bar_status=1', {}, 'get')
+    const { code, data } = await fetch('/api/admin/v1/bar/list?page=1&page_size=100&bar_status=1', {}, 'get')
     if (code === 200) {
       commit('SET_OUTLETLIST', data.list)
     }
   },
   // 获取商品分类列表
   async fetchCategory ({ commit }) {
-    const { code, data } = await fetch('/v1/bar/product/category/list?page=1&page_size=10000&category_status=1', {}, 'get')
+    const { code, data } = await fetch('/v1/bar/product/category/list?page=1&page_size=100&category_status=1', {}, 'get')
     if (code === 200) {
       commit('SET_CATEGORYARR', data.list)
     }
   },
   // 获取规格列表
   async fetchGoodsAttr ({ commit }) {
-    const { code, data } = await fetch('/v1/bar/product/attach/list?page=1&page_size=10000', {}, 'get')
+    const { code, data } = await fetch('/v1/bar/product/attach/list?page=1&page_size=500', {}, 'get')
     if (code === 200) {
       commit('SET_GOODSATTRARR', data.list)
     }
   },
   // 获取商品列表
   async fetchGoodsArr ({ commit }) {
-    const { code, data } = await fetch('/v1/bar/product/list?page=1&page_size=10000&product_status=1', {}, 'get')
+    const { code, data } = await fetch('/v1/bar/product/list?page=1&page_size=1000&product_status=1', {}, 'get')
     if (code === 200) {
       commit('SET_GOODSARR', data.list)
     }