@ -48,10 +48,10 @@ function LayoutContainer(props) {
// 根据登录验证,如果尚未登录,则不可跳转/article
useEffect(() => {
const { pathname } = location;
const rightList = ['/brief'];
const rightList = ['/article'];
if (rightList.every((path) => pathname.indexOf(path) == -1)) {
if (!sessionStorage.getItem("user")) {
dispatch(push("/brief"));
dispatch(push("/article"));
}