Browse Source

修改翻页错误

zhanghe 6 years ago
parent
commit
4c810ccef8
2 changed files with 3 additions and 2 deletions
  1. 1 1
      src/routes/MProduct/Add/index.js
  2. 2 1
      src/utils/config.js

+ 1 - 1
src/routes/MProduct/Add/index.js

@@ -162,7 +162,7 @@ export default class MerchantProductCreate extends PureComponent {
   handleModalTableChange = (pagination, filterArgs) => {
     const { curClickedBtn } = this.state;
     const { dispatch } = this.props;
-    const newFilters = { ...filters };
+    const newFilters = { ...filterArgs };
     if (newFilters.keyword) {
       newFilters[newFilters.field] = newFilters.keyword;
       delete newFilters.field;

+ 2 - 1
src/utils/config.js

@@ -44,7 +44,8 @@ Codes.CODE_SEASON = '季';
 Codes.CODE_ITEM = '件';
 
 module.exports = {
-  apiHost: 'http://192.168.1.40:8500',
+  apiHost: '/api/v1',
+  // apiHost: 'http://192.168.1.40:8500',
   // apiHost: 'http://tt-cms.api.ai160.com',
   ossHost: 'http://efunimgs.oss-cn-beijing.aliyuncs.com',
   // 每页返回数据量