lanjianrong 4 лет назад
Родитель
Сommit
05de46a73f

+ 1 - 1
src/pages/Hr/Notification/components/MessageDetail.jsx

@@ -1,7 +1,7 @@
 import styles from '@/pages/Hr/Notification/index.less'
 import { Drawer, Tag, Typography } from 'antd'
 import { useIntl } from 'umi'
-import MarkDown from './MarkDown'
+import MarkDown from 'react-markdown'
 
 const MessageDetail = props => {
   const { item: { id, title, createTime, content, msgType } = {}, ...otherProps } = props

+ 1 - 1
src/pages/Hr/Notification/index.jsx

@@ -7,7 +7,7 @@ import consts from '@/consts'
 import { useRequest, useIntl, useAccess } from 'umi'
 import ws, { CmdType } from '@/utils/ws'
 import { useModal } from '@/components/ModalStore'
-import MarkDown from './components/MarkDown'
+import MarkDown from 'react-markdown'
 
 const Notification = () => {
   const intl = useIntl()