lanjianrong 4 سال پیش
والد
کامیت
05de46a73f
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/pages/Hr/Notification/components/MessageDetail.jsx
  2. 1 1
      src/pages/Hr/Notification/index.jsx

+ 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()