This commit is contained in:
caishi 2021-02-26 11:53:08 +08:00
parent 3fb9eb40f3
commit 64e639ebea
2 changed files with 4 additions and 7 deletions

View File

@ -243,8 +243,7 @@ class Index extends Component {
render() {
const { current_user } = this.props;
const { projectsList , recommendList , languageList , languageId ,
isSpin, total, search, limit, page, typeList, categoryList } = this.state;
const { projectsList , isSpin , total , search , limit , page , typeList , categoryList } = this.state;
return (
<div>

View File

@ -1,5 +1,4 @@
import React, { Component } from "react";
import { Link } from "react-router-dom";
import { Avatar, Tag, Button, Spin } from "antd";
import FocusButton from "../UsersList/focus_button";
@ -138,7 +137,6 @@ class Infos extends Component {
render() {
const extra_http = `${document.location.protocol}//${document.domain}`;
const { current_user, mygetHelmetapi } = this.props;
const { username } = this.props.match.params;
@ -169,7 +167,7 @@ class Infos extends Component {
<Button
block
className="text-button-grey"
href={`${extra_http}/users/${user.login}/profiles`}
href={`/users/${user.login}/profiles`}
>
{" "}
<i className="iconfont icon-shezhi4 font-15 mr5"></i>
@ -191,7 +189,7 @@ class Infos extends Component {
</div>
<div className="width100 inline-block mt20">
<a
href={`${extra_http}/users/${user && user.login}/user_watchlist`}
href={`/users/${user && user.login}/user_watchlist`}
className={`with50 text-center pull-left ${route_type === "watchers" ? "text-primary" : ""}`}
onClick={() =>this.route_link("watchers")}
>
@ -199,7 +197,7 @@ class Infos extends Component {
<span>{user && user.watching_count}</span>
</a>
<a
href={`${extra_http}/users/${user && user.login}/user_fanslist`}
href={`/users/${user && user.login}/user_fanslist`}
onClick={() =>this.route_link("fan_users")}
className={`with50 text-center pull-left ${route_type === "fan_users" ? "text-primary" : ""}`}
>