From 22c00f5ce335e3aed1ac3dc3fd007f22f2c915a8 Mon Sep 17 00:00:00 2001 From: dinglink <837816638@qq.com> Date: Fri, 20 Mar 2020 22:07:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E4=B8=BA=E7=A9=BA=E6=98=AFun?= =?UTF-8?q?dfind=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/IndexItem.js | 2 +- src/forge/Order/Detail.js | 5 ++++- src/forge/quillForEditor/index.js | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/forge/Main/IndexItem.js b/src/forge/Main/IndexItem.js index 17341a215..2b939fe54 100644 --- a/src/forge/Main/IndexItem.js +++ b/src/forge/Main/IndexItem.js @@ -25,7 +25,7 @@ class IndexItem extends Component{
- {item.name} +

{item.author.name}

{item.name}

{item.description}

diff --git a/src/forge/Order/Detail.js b/src/forge/Order/Detail.js index ecbf0ead1..c5821d2c3 100644 --- a/src/forge/Order/Detail.js +++ b/src/forge/Order/Detail.js @@ -314,11 +314,13 @@ class Detail extends Component{ commentCtx = (ctx) => { let _ctx = null; + try { _ctx = JSON.parse(ctx); } catch (e) { _ctx = ctx; } + return ( */} - {this.commentCtx(data && data.description)} + + {data&&data.description===""?没有描述:this.commentCtx(data && data.description)}
{ data && data.attachments && data.attachments.length > 0 ? diff --git a/src/forge/quillForEditor/index.js b/src/forge/quillForEditor/index.js index 98f8dba64..5bf6819fe 100644 --- a/src/forge/quillForEditor/index.js +++ b/src/forge/quillForEditor/index.js @@ -208,7 +208,6 @@ function QuillForEditor({ const previous = quill.getContents() if (value && value.hasOwnProperty('ops')) { - // console.log(value.ops); const ops = value.ops || []; ops.forEach((item, i) => { if (item.insert['image']) {