在登录页设置sessionStorage,登录成功,login的状态设置为true的同时设置sessionStorage,状态默认是false,利用react生命周期,componentWillReceiveProps,判断是否登录,未登录,router指向login做页面跳转
在登录页设置sessionStorage,登录成功,login的状态设置为true的同时设置sessionStorage,状态默认是false,利用react生命周期,componentWillReceiveProps,判断是否登录,未登录,router指向login做页面跳转