修改资料的bug

This commit is contained in:
何童崇 2022-01-12 21:07:16 +08:00
parent de68654963
commit 6f05e84f82
1 changed files with 4 additions and 2 deletions

View File

@ -137,7 +137,9 @@ class Infos extends Component {
render() {
const { current_user, main_web_site_url } = this.props;
let settings = JSON.parse(localStorage.chromesetting);
let main_web_site_url = settings.main_web_site_url;
const { current_user } = this.props;
const { username } = this.props.match.params;
const { user, isSpin, project_type, route_type } = this.state;
@ -167,7 +169,7 @@ class Infos extends Component {
<Button
block
className="text-button-grey"
href={`${main_web_site_url || "https://osredm.com/"}users/${user.login}/profiles`}
href={`${main_web_site_url || "https://osredm.com"}/users/${user.login}/profiles`}
>
{" "}
<i className="iconfont icon-shezhi4 font-15 mr5"></i>