张延森 3 лет назад
Родитель
Сommit
254ab16fde
1 измененных файлов: 3 добавлений и 1 удалений
  1. 3
    1
      src/pages/NoticeInfo/index.jsx

+ 3
- 1
src/pages/NoticeInfo/index.jsx Просмотреть файл

@@ -19,7 +19,9 @@ export default (props) => {
19 19
   }, [id])
20 20
 
21 21
 
22
-  const htmlSnip = content?.content.replace(/<\/p>/g, '</p><p style="height: 1em">&nbsp;</p>')
22
+  const htmlSnip = content?.content
23
+                    .replace(/<\/p>/g, '</p><p style="height: 1em">&nbsp;</p>')
24
+                    .replace(/<img src/g, '<img style="width: 100%" src')
23 25
 
24 26
   return (
25 27
     <>