Переглянути джерело

预览诊断末尾不显示标点

zhouna 5 роки тому
батько
коміт
8955e1b46e
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/components/PreviewBody/ItemPart/index.jsx

+ 1 - 1
src/components/PreviewBody/ItemPart/index.jsx

@@ -4,7 +4,7 @@ import { filterDataArr } from '@utils/tools';
 const ItemPart = (props) => {
 const ItemPart = (props) => {
   let {dataStr,title,type,dataJson,other_yjs,lastDot} = props;
   let {dataStr,title,type,dataJson,other_yjs,lastDot} = props;
   if(lastDot){
   if(lastDot){
-    dataStr=dataStr.trim().replace(/;$/g,'');
+    dataStr=dataStr.trim().replace(/;$/g,'');
   }
   }
   return <tr className={style['patInfoFst']}>
   return <tr className={style['patInfoFst']}>
     <td className={style['patInfoSec']}>{title}</td>
     <td className={style['patInfoSec']}>{title}</td>