20190313_jeffrey - silenceuncrio/diary GitHub Wiki
0855
review
0955
commit 57302be62e2b37734dddd88e3a0a2c6cdfdbd1b0
Author: jeffrey <[email protected]>
Date: Wed Mar 13 09:45:59 2019 +0800
react practive:
- redirect to /signin route when the response.status of fetch is 401
- after signin ok, use history.goBack() to redirect to the previous route
proscend/prosrc/www/react_01/src/components/Function01/index.js | 8 ++++++--
proscend/prosrc/www/react_01/src/components/Function02/index.js | 8 ++++++--
proscend/prosrc/www/react_01/src/components/Function03/index.js | 8 ++++++--
proscend/prosrc/www/react_01/src/components/SignIn/index.js | 3 ++-
4 files changed, 20 insertions(+), 7 deletions(-)
1035
commit a07c3666ebd9f1f1a195ae6fba1238ea259e1bc8
Author: jeffrey <[email protected]>
Date: Wed Mar 13 10:32:57 2019 +0800
react practive:
- add SignOut component
- add 'Sign Out' button at Navigation component
.../prosrc/www/react_01/src/components/Navigation/index.js | 4 ++++
proscend/prosrc/www/react_01/src/components/SignIn/index.js | 2 --
proscend/prosrc/www/react_01/src/components/SignOut/index.js | 11 +++++++++++
3 files changed, 15 insertions(+), 2 deletions(-)