From 64e639ebea66db929d64d21e0f826f396d15a0c1 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 26 Feb 2021 11:53:08 +0800 Subject: [PATCH] update --- src/forge/Main/Index.js | 3 +-- src/forge/users/Infos.js | 8 +++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/forge/Main/Index.js b/src/forge/Main/Index.js index d127775d..ade074a0 100644 --- a/src/forge/Main/Index.js +++ b/src/forge/Main/Index.js @@ -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 (
diff --git a/src/forge/users/Infos.js b/src/forge/users/Infos.js index 6b8ea202..e582e369 100644 --- a/src/forge/users/Infos.js +++ b/src/forge/users/Infos.js @@ -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 {
this.route_link("watchers")} > @@ -199,7 +197,7 @@ class Infos extends Component { {user && user.watching_count} this.route_link("fan_users")} className={`with50 text-center pull-left ${route_type === "fan_users" ? "text-primary" : ""}`} >