Skip to content

use axios is not working in ie9-ie11  #7209

@prodigaLaugh

Description

@prodigaLaugh

### Environment
node version: 11.12.0,
npm version: 6.7.0
create-react-app:3.0.1
This problem is specific for IE11 running on Windows 10

index.js below:

import 'react-app-polyfill/ie9';
import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';
import 'es6-promise/auto'

server.js below:

export  function  getBlockLists(para){
	let url = `/tk/block/query/blockList`;
	let result =  myAxios.get(url, {params:para})
	console.log(result,33398)
	return result;
}

component below:

getLists_block(){
    console.log(this.state.page,111)
    getBlockLists(this.state.page)
      .then(({data})=>{
        console.log(data,222)
      })
      .catch((res)=>{
        console.log(res,333)
      })
  }

  componentDidMount(){
    this.getLists_block();
}

but in ie11 ,not request ;error below:
QQ20190613-1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions