一直存在一个warning:Please use `require("history").createHashHistory` instead of ......
- 报错信息
解决方法;
把这两行代码:// import creatHistory from 'history/createHashHistory' //返回上一页这段代码
// const history = creatHistory();//返回上一页这段代码
改为:
const createHistory = require("history").createHashHistory
const history = createHistory()