diff --git a/package.json b/package.json index 0d6c8232cf1ae0e01fc3b270c2894c4ef114ce43..3072b9a08a51e7925dcad28f7bc43593430fb3a0 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "react-dom": "^16.7.0", "react-fittext": "^1.0.0", "react-media": "^1.9.2", - "react-router-dom": "^4.3.1" + "umi": "^2.4.4" }, "devDependencies": { "@types/react": "^16.8.1", @@ -99,7 +99,6 @@ "tslint": "^5.12.1", "tslint-config-prettier": "^1.17.0", "tslint-react": "^3.6.0", - "umi": "^2.4.4", "umi-plugin-ga": "^1.1.3", "umi-plugin-react": "^1.4.2" }, diff --git a/src/components/Authorized/AuthorizedRoute.js b/src/components/Authorized/AuthorizedRoute.js index 39c6a665f1bf522622ac73e2333f0739c587b1a2..a622ed381ac1b7e5c53851ec1c9cb66aad93ae88 100644 --- a/src/components/Authorized/AuthorizedRoute.js +++ b/src/components/Authorized/AuthorizedRoute.js @@ -1,5 +1,5 @@ import React from 'react'; -import { Route, Redirect } from 'react-router-dom'; +import { Route, Redirect } from 'umi'; import Authorized from './Authorized'; // TODO: umi只会返回render和rest