If dva uses onError () 's hook method, ie will report an error

if dva uses the hook method of onError (), ie will report an error

  onError(e, dispatch){
    e.preventDefault();
    // https://github.com/dvajs/dva/issues/1222 
    if(!e.msg || e.msg === "") {
      return
    }
    if(e.code === "2004") {
      dispatch(routerRedux.push("/user/login"));
      return
    }
    notification.error({message:e.msg})
  },

build can be run on other browsers after that, but there is a blank page above the ie, and the log for the ie console is as follows:

Mar.10,2021
Menu