From 21e27bdef167992cb3d492f9ea2bfc60632d4b3a Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Fri, 20 Mar 2020 22:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E6=A1=86=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Branch/CloneAddress.js | 8 ++------ src/forge/Main/Detail.js | 5 ----- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/forge/Branch/CloneAddress.js b/src/forge/Branch/CloneAddress.js index e97aa0ae..06c69370 100644 --- a/src/forge/Branch/CloneAddress.js +++ b/src/forge/Branch/CloneAddress.js @@ -1,12 +1,8 @@ import React , { Component } from 'react'; -import { Dropdown , Icon , Menu } from 'antd'; - -import "./branch.css" +import { Dropdown , Icon } from 'antd'; +import "./branch.css"; class CloneAddress extends Component{ - constructor(props){ - super(props); - } // 点击按钮复制功能 jsCopy=()=>{ var e = document.getElementById("copy_rep_content"); diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js index 0b096976..3d5e28cc 100644 --- a/src/forge/Main/Detail.js +++ b/src/forge/Main/Detail.js @@ -203,7 +203,6 @@ class Detail extends Component{ const url = `/projects/${project_id}/watchers/follow.json`; axios.post(url).then(result=>{ if(result && result.data.status === 0){ - this.props.showNotification('关注成功'); this.getDetail(); } }).catch(error=>{ @@ -213,7 +212,6 @@ class Detail extends Component{ const url = `/projects/${project_id}/watchers/unfollow.json`; axios.delete(url).then(result=>{ if(result && result.data.status === 0){ - this.props.showNotification('取消关注成功'); this.getDetail(); } }).catch(error=>{ @@ -229,7 +227,6 @@ class Detail extends Component{ const url = `/projects/${project_id}/praise_tread/like.json`; axios.post(url).then(result=>{ if(result && result.data.status === 0){ - this.props.showNotification('点赞成功'); this.getDetail(); } }).catch(error=>{ @@ -239,7 +236,6 @@ class Detail extends Component{ const url = `/projects/${project_id}/praise_tread/unlike.json`; axios.delete(url).then(result=>{ if(result && result.data.status === 0){ - this.props.showNotification('取消点赞成功'); this.getDetail(); } }).catch(error=>{ @@ -250,7 +246,6 @@ class Detail extends Component{ // fork项目 forkFunc=()=>{ - const { author } = this.props.match.params; const { project_id } = this.state; const url = `/projects/${project_id}/forks.json`; axios.post(url).then(result=>{