jrs-react 1.2.49 → 1.2.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Readme.txt CHANGED
@@ -1,6 +1,8 @@
1
1
  deploy to npm
2
- 1)npm login
3
- 2)npm build
2
+ 1)npm build
3
+ 2)npm login
4
+ 3)去npm網站產生token, 把token貼在.npmrc檔案-->//registry.npmjs.org/:_authToken=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
5
+ 3)npm publish
4
6
 
5
7
 
6
8
 
package/build/index.es.js CHANGED
@@ -3797,7 +3797,6 @@ class JRSubmit extends React__default.Component {
3797
3797
  paramsSerializer,
3798
3798
  ...params
3799
3799
  }) {
3800
- po('params', params);
3801
3800
  const _extraValue = extraValue?.bind?.(this)() ?? extraValue;
3802
3801
  // let payload=typeof value === 'function'
3803
3802
  // ?value.bind(this)({
@@ -3834,7 +3833,10 @@ class JRSubmit extends React__default.Component {
3834
3833
  if (method == 'get') {
3835
3834
  if (sendValue == null || sendValue) params1.params = payload;
3836
3835
  params1.headers = headers;
3837
- params1.paramsSerializer = paramsSerializer;
3836
+ params1.paramsSerializer = {
3837
+ indexes: null,
3838
+ ...paramsSerializer
3839
+ };
3838
3840
  } else if (method == 'delete') {
3839
3841
  if (sendValue == null || sendValue) params1.data = payload;
3840
3842
  params1.headers = headers;
package/build/index.js CHANGED
@@ -3824,7 +3824,6 @@ class JRSubmit extends React__default["default"].Component {
3824
3824
  paramsSerializer,
3825
3825
  ...params
3826
3826
  }) {
3827
- po('params', params);
3828
3827
  const _extraValue = extraValue?.bind?.(this)() ?? extraValue;
3829
3828
  // let payload=typeof value === 'function'
3830
3829
  // ?value.bind(this)({
@@ -3861,7 +3860,10 @@ class JRSubmit extends React__default["default"].Component {
3861
3860
  if (method == 'get') {
3862
3861
  if (sendValue == null || sendValue) params1.params = payload;
3863
3862
  params1.headers = headers;
3864
- params1.paramsSerializer = paramsSerializer;
3863
+ params1.paramsSerializer = {
3864
+ indexes: null,
3865
+ ...paramsSerializer
3866
+ };
3865
3867
  } else if (method == 'delete') {
3866
3868
  if (sendValue == null || sendValue) params1.data = payload;
3867
3869
  params1.headers = headers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jrs-react",
3
- "version": "1.2.49",
3
+ "version": "1.2.51",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",
@@ -159,7 +159,6 @@ export default class JRSubmit extends React.Component {
159
159
  getAxiosParams({url,method,value,extraValue,sendValue,transformValue,paramsSerializer
160
160
  ,...params
161
161
  }){
162
- po('params',params)
163
162
  const _extraValue=extraValue?.bind?.(this)() ?? extraValue
164
163
  // let payload=typeof value === 'function'
165
164
  // ?value.bind(this)({
@@ -200,7 +199,10 @@ export default class JRSubmit extends React.Component {
200
199
  if(method=='get'){
201
200
  if(sendValue==null || sendValue) params1.params=payload
202
201
  params1.headers=headers
203
- params1.paramsSerializer=paramsSerializer
202
+ params1.paramsSerializer={
203
+ indexes: null
204
+ ,...paramsSerializer
205
+ }
204
206
  }else if(method=='delete'){
205
207
  if(sendValue==null || sendValue) params1.data=payload
206
208
  params1.headers=headers