Commit 56a8b716 authored by chencheng (云谦)'s avatar chencheng (云谦) Committed by 陈小聪

fix: react-router-dom's Consumer problem (#3787)

parent bffa6379
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
"react-dom": "^16.7.0", "react-dom": "^16.7.0",
"react-fittext": "^1.0.0", "react-fittext": "^1.0.0",
"react-media": "^1.9.2", "react-media": "^1.9.2",
"react-router-dom": "^4.3.1" "umi": "^2.4.4"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^16.8.1", "@types/react": "^16.8.1",
...@@ -99,7 +99,6 @@ ...@@ -99,7 +99,6 @@
"tslint": "^5.12.1", "tslint": "^5.12.1",
"tslint-config-prettier": "^1.17.0", "tslint-config-prettier": "^1.17.0",
"tslint-react": "^3.6.0", "tslint-react": "^3.6.0",
"umi": "^2.4.4",
"umi-plugin-ga": "^1.1.3", "umi-plugin-ga": "^1.1.3",
"umi-plugin-react": "^1.4.2" "umi-plugin-react": "^1.4.2"
}, },
......
import React from 'react'; import React from 'react';
import { Route, Redirect } from 'react-router-dom'; import { Route, Redirect } from 'umi';
import Authorized from './Authorized'; import Authorized from './Authorized';
// TODO: umi只会返回render和rest // TODO: umi只会返回render和rest
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment