Improve login failure handling.

This commit is contained in:
Yang Luo
2021-03-26 21:58:19 +08:00
parent fa358654e6
commit d11bb49eac
8 changed files with 32 additions and 29 deletions

View File

@ -15,6 +15,7 @@
import React from "react";
import {Card, Col, Row} from "antd";
import * as Setting from "../Setting";
import {withRouter} from "react-router-dom";
const { Meta } = Card;
@ -34,7 +35,7 @@ class SingleCard extends React.Component {
};
return (
<Card.Grid style={gridStyle} onClick={() => Setting.goToLink(link)}>
<Card.Grid style={gridStyle} onClick={() => Setting.goToLinkSoft(this, link)}>
<img src={logo} alt="logo" height={60} style={{marginBottom: '20px'}}/>
<Meta
title={title}
@ -52,7 +53,7 @@ class SingleCard extends React.Component {
cover={
<img alt="logo" src={logo} width={"100%"} height={"100%"} />
}
onClick={() => Setting.goToLink(link)}
onClick={() => Setting.goToLinkSoft(this, link)}
style={isSingle ? {width: "320px"} : null}
>
<Meta title={title} description={desc} />
@ -73,4 +74,4 @@ class SingleCard extends React.Component {
}
}
export default SingleCard;
export default withRouter(SingleCard);