张延森 hace 3 años
padre
commit
254ab16fde
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      src/pages/NoticeInfo/index.jsx

+ 3
- 1
src/pages/NoticeInfo/index.jsx Ver fichero

@@ -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
     <>