×
TypeError: Cannot read property 'location' of undefined
解决方式:
将
import { Router, Route } from 'react-router'
换成
import {BrowserRouter as Router,Route} from 'react-router-dom';
本文来自博客园,作者:ljyyjj,转载请注明原文链接:https://www.cnblogs.com/ljyyjj/p/12068033.html