From 83c7adf9ee47bb252148790847b5407a91f12c22 Mon Sep 17 00:00:00 2001 From: solarjoker Date: Sun, 2 Feb 2020 18:42:59 +0800 Subject: [PATCH] feat: #9 --- package.json | 2 +- src/data-filter/data-filter.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5186591..bd1b8d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hi-ui/component-kit", - "version": "1.0.0-rc.2", + "version": "1.0.0-rc.3", "main": "index.js", "module": "es/index.js", "file": [ diff --git a/src/data-filter/data-filter.js b/src/data-filter/data-filter.js index 9c6e1ac..a1bbe29 100644 --- a/src/data-filter/data-filter.js +++ b/src/data-filter/data-filter.js @@ -150,7 +150,8 @@ export default class DataFilter extends Component { params, url, onFetched, - fetchDatas + fetchDatas, + withCredentials = false } = props const { page @@ -166,6 +167,7 @@ export default class DataFilter extends Component { }) } else { axios.get(url, { + withCredentials, params: { page, ...params,