Commit a50a847ca5f6155623d36dcdd7ec7e6d59b36a6d
1 parent
e0bd31a6
update message
Showing
1 changed file
with
0 additions
and
5 deletions
Show diff stats
src/components/message/index.js
@@ -29,11 +29,6 @@ function getMessageInstance () { | @@ -29,11 +29,6 @@ function getMessageInstance () { | ||
29 | } | 29 | } |
30 | 30 | ||
31 | function notice (content = '', duration = defaultDuration, type, onClose = function () {}, closable = false) { | 31 | function notice (content = '', duration = defaultDuration, type, onClose = function () {}, closable = false) { |
32 | - if (!onClose) { | ||
33 | - onClose = function () { | ||
34 | - | ||
35 | - }; | ||
36 | - } | ||
37 | const iconType = iconTypes[type]; | 32 | const iconType = iconTypes[type]; |
38 | 33 | ||
39 | // if loading | 34 | // if loading |