From 037a79de6711a52a5b0eafd1f03e4f49ca202c64 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 7 May 2021 17:33:41 +0800 Subject: [PATCH 1/3] =?UTF-8?q?detail+=E5=90=8C=E6=AD=A5=E9=95=9C=E5=83=8F?= =?UTF-8?q?type=3D2=E7=9A=84=E6=89=8D=E4=B8=8D=E9=9C=80=E8=A6=81=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/About/Index.jsx | 2 +- src/forge/Main/Index.scss | 2 +- src/forge/Main/IndexItem.js | 9 ++++++--- src/forge/Main/sub/UpdateDescModal.jsx | 2 +- src/forge/Settings/Setting.js | 3 ++- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/forge/About/Index.jsx b/src/forge/About/Index.jsx index 5956a7c6..b36b815c 100644 --- a/src/forge/About/Index.jsx +++ b/src/forge/About/Index.jsx @@ -117,7 +117,7 @@ function Index(props){ {content ? : -
暂无简介~
+
暂无概览~
} {attachments && attachments.length > 0 && li{ height: 42px; display: flex; justify-content: space-between; diff --git a/src/forge/Main/IndexItem.js b/src/forge/Main/IndexItem.js index b3ac2a50..9b6a78c1 100644 --- a/src/forge/Main/IndexItem.js +++ b/src/forge/Main/IndexItem.js @@ -1,6 +1,7 @@ import React, { Component } from 'react'; import { Tooltip } from 'antd'; import { getImageUrl } from 'educoder'; +import { AlignCenter } from '../Component/layout'; import { Link } from 'react-router-dom'; import '../css/index.scss'; import Nodata from '../Nodata'; @@ -33,8 +34,10 @@ class IndexItem extends Component { }
- - {item.author.name}/{item.name} + + + {item.author.name}/{item.name} + { item.forked_from_project_id ? @@ -52,7 +55,7 @@ class IndexItem extends Component { :"" } - + 赞 {item.praises_count} fork {item.forked_count} diff --git a/src/forge/Main/sub/UpdateDescModal.jsx b/src/forge/Main/sub/UpdateDescModal.jsx index cae9c36d..5039123a 100644 --- a/src/forge/Main/sub/UpdateDescModal.jsx +++ b/src/forge/Main/sub/UpdateDescModal.jsx @@ -39,7 +39,7 @@ function UpdateDescModal({form , visible , onCancel , onOk,desc,website,lesson_u {getFieldDecorator("desc",{ rules:[] })( -