From 46c604bf92db2f7c381a74515030196bf2346533 Mon Sep 17 00:00:00 2001 From: caishi Date: Tue, 7 Sep 2021 13:57:28 +0800 Subject: [PATCH] =?UTF-8?q?markdown=E5=9B=BE=E7=89=87=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=94=BE=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/Detail.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js index 803b4c74b..0a4a178c4 100644 --- a/src/forge/Main/Detail.js +++ b/src/forge/Main/Detail.js @@ -6,6 +6,9 @@ import DetailBanner from './sub/DetailBanner'; import '../css/index.scss' import './list.css'; +import { ImageLayerOfCommentHOC } from "../../modules/page/layers/ImageLayerOfCommentHOC"; + + import Loadable from 'react-loadable'; import Loading from '../../Loading'; @@ -142,7 +145,7 @@ const WikiEdit = Loadable({ function checkPathname(projectsId, owner, pathname) { let name = ""; if (pathname && pathname !== `/${owner}/${projectsId}`) { - let url = pathname.split(`/${owner}/${projectsId}`)[1] || ''; + let url = pathname.split(`/${owner}/${projectsId}`)[1] || ""; if (url.indexOf("/about") > -1) { name = "about" } else if (url.indexOf("/issues") > -1 || url.indexOf("Milepost") > 0) { @@ -780,4 +783,7 @@ class Detail extends Component { } } -export default Detail; +export default ImageLayerOfCommentHOC({ + imgSelector: ".imageLayerParent img, .imageLayerParent .imageTarget", + parentSelector: ".newContainer", +})(Detail);