张延森 3 years ago
parent
commit
254ab16fde
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/pages/NoticeInfo/index.jsx

+ 3
- 1
src/pages/NoticeInfo/index.jsx View File

19
   }, [id])
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
   return (
26
   return (
25
     <>
27
     <>