jrs-react 1.0.23 → 1.0.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jrs-react",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",
@@ -1,7 +1,22 @@
1
1
  import React from 'react'
2
+ import axios from 'axios'
3
+ import { colonValueString, flexType, po } from './JRUtils'
4
+
5
+ const axiosSubmit = axios.create({
6
+ authorization: `Bearer ${localStorage.getItem("accessToken")}`
7
+ ,timeout: 120000
8
+ ,maxBodyLength: 104857600 //100mb 104857600
9
+ ,maxContentLength: 104857600 //100mb
10
+ })
2
11
 
3
12
  export default class JRSubmit extends React.Component {
13
+ submit(){
14
+ po('test',test)
15
+ // const aaa=colonValueString('xxx',{})
16
+ return axiosSubmit
17
+ }
4
18
  render(){
19
+ const test=this.submit()
5
20
  return <div>JRSubmit</div>
6
21
  }
7
22
  }