瀏覽代碼

修复顶部清空通知/消息/待办后提示国际化不完整 (#2457)

michael 7 年之前
父節點
當前提交
a09ed8c3af
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/layouts/Header.js

+ 1 - 1
src/layouts/Header.js

@@ -43,7 +43,7 @@ class HeaderView extends PureComponent {
   };
   };
 
 
   handleNoticeClear = type => {
   handleNoticeClear = type => {
-    message.success(`${formatMessage({ id: 'component.noticeIcon.cleared' })} ${type}`);
+    message.success(`${formatMessage({ id: 'component.noticeIcon.cleared' })} ${formatMessage({ id: `component.globalHeader.${type}` })}`);
     const { dispatch } = this.props;
     const { dispatch } = this.props;
     dispatch({
     dispatch({
       type: 'global/clearNotices',
       type: 'global/clearNotices',