From 4f39f03b1993d7d8020493443280c45978d85f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=AB=A5=E5=B4=87?= <792998983@qq.com> Date: Thu, 2 Sep 2021 17:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1=E7=9A=84is?= =?UTF-8?q?sue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 5 ++--- src/AppConfig.js | 4 ++-- src/forge/Activity/ActivityItem.js | 2 +- src/forge/Index.js | 18 +++++++++++++++--- src/forge/Main/IndexItem.js | 2 +- src/forge/Notice/Notify.jsx | 3 ++- src/forge/Order/Milepostitem.js | 4 ++-- src/forge/users/GeneralView/Activity.jsx | 4 ++-- src/modules/search/index.jsx | 7 ++----- 9 files changed, 29 insertions(+), 20 deletions(-) diff --git a/src/App.js b/src/App.js index aae03b9d..8926349c 100644 --- a/src/App.js +++ b/src/App.js @@ -105,7 +105,7 @@ class App extends Component { occupation: 0, mygetHelmetapi: null, pathType: null, - pathName: '', + pathName: null, } } @@ -175,7 +175,6 @@ class App extends Component { const msg = `${event.type}: ${event.message}`; }); - } componentWillUnmount() { @@ -317,7 +316,7 @@ class App extends Component { } /> - {/*项目*/} + {/*新建项目等*/} { }) function locationurl(list) { - if (window.location.port !== "3007") { + // if (window.location.port !== "3007") { window.location.href = list - } + // } } // TODO 开发期多个身份切换 let debugType = "" diff --git a/src/forge/Activity/ActivityItem.js b/src/forge/Activity/ActivityItem.js index 978498b2..baa5a2cb 100644 --- a/src/forge/Activity/ActivityItem.js +++ b/src/forge/Activity/ActivityItem.js @@ -14,7 +14,7 @@ class ActivityItem extends Component { {/* 如果是版本发布 */} {item.trend_type === "VersionRelease" ?

- {item.name} + {item.name} {item.trend_type}

: diff --git a/src/forge/Index.js b/src/forge/Index.js index 2423f000..4ccbfe2e 100644 --- a/src/forge/Index.js +++ b/src/forge/Index.js @@ -12,8 +12,13 @@ import Loadable from "react-loadable"; import Loading from "../Loading"; import { ImageLayerOfCommentHOC } from "../modules/page/layers/ImageLayerOfCommentHOC"; +//404页面 +const Shixunnopage = Loadable({ + loader: () => import('./modules/404/Shixunnopage'), + loading: Loading, +}) const ProjectNew = Loadable({ - loader: () => import("./New/Index"), + loader: () => import("./New/Index"), loading: Loading, }); const ProjectIndex = Loadable({ @@ -29,8 +34,8 @@ const ProjectIndex = Loadable({ class Index extends Component { - componentDidUpdate=()=>{ - this.props.history.listen(()=>{ + componentDidUpdate = () => { + this.props.history.listen(() => { if (document.body.scrollTop || document.documentElement.scrollTop > 0) { window.scrollTo(0, 0) } @@ -70,6 +75,13 @@ class Index extends Component { )} >
+ + ( + + )} + > ); diff --git a/src/forge/Main/IndexItem.js b/src/forge/Main/IndexItem.js index ec985ecc..2265ac20 100644 --- a/src/forge/Main/IndexItem.js +++ b/src/forge/Main/IndexItem.js @@ -28,7 +28,7 @@ class IndexItem extends Component { : - + } diff --git a/src/forge/Notice/Notify.jsx b/src/forge/Notice/Notify.jsx index 96b9e687..31373908 100644 --- a/src/forge/Notice/Notify.jsx +++ b/src/forge/Notice/Notify.jsx @@ -80,9 +80,10 @@ function Notify(props){