mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 13:20:19 +08:00
Improve login failure handling.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user