一直存在一个warning:Please use `require("history").createHashHistory` instead of ......
- 报错信息

解决方法;
把这两行代码:// import creatHistory from 'history/createHashHistory' //返回上一页这段代码
// const history = creatHistory();//返回上一页这段代码
改为:
const createHistory = require("history").createHashHistory
const history = createHistory()
版权声明:本文为u010565037原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。