Explorar o código

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

michael %!s(int64=7) %!d(string=hai) anos
pai
achega
a09ed8c3af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/layouts/Header.js

+ 1 - 1
src/layouts/Header.js

@@ -43,7 +43,7 @@ class HeaderView extends PureComponent {
   };
 
   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;
     dispatch({
       type: 'global/clearNotices',