lanjianrong 4 years ago
parent
commit
5856a2deb1
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/pages/Hr/Notification/components/MessageDrawer.jsx

+ 4 - 2
src/pages/Hr/Notification/components/MessageDrawer.jsx

@@ -1,18 +1,20 @@
 import React from 'react'
 import MarkDown from 'react-markdown'
 import styles from '@/pages/Hr/Notification/index.less'
+import 'vditor/src/assets/scss/index.scss'
 
 const MessageDrawer = props => {
   const {
     item: { title, createTime, content }
   } = props
   return (
-    <div className="px-5">
+    <div className="px-5 vditor-reset">
       <h1 className="pt-4 text-xl pr-6">{title}</h1>
       <div className="text-blueGray-500 py-1">{createTime}</div>
       <div
         className={['py-3', styles.NotificationCont].join(' ')}
-        style={{ height: 'calc(100vh - 120px)', overflowY: 'auto' }}>
+        style={{ height: 'calc(100vh - 120px)', overflowY: 'auto' }}
+      >
         <MarkDown>{content}</MarkDown>
       </div>
     </div>