(payload, options = {})
| 42 | } |
| 43 | |
| 44 | static error(payload, options = {}) { |
| 45 | let message = payload; |
| 46 | |
| 47 | if (!message) { |
| 48 | message = i18n('errors.defaultErrorMessage'); |
| 49 | } |
| 50 | |
| 51 | ElNotification( |
| 52 | { |
| 53 | |
| 54 | title: options.title ? options.title : message, |
| 55 | showClose: true, |
| 56 | message: options.title ? message : null, |
| 57 | customClass: 'error', |
| 58 | icon: errorIcon, |
| 59 | duration: 0, |
| 60 | dangerouslyUseHTMLString: true, |
| 61 | position: 'bottom-right', |
| 62 | offset: 24, |
| 63 | ...options, |
| 64 | }, |
| 65 | ); |
| 66 | } |
| 67 | |
| 68 | static info(message, options = {}) { |
| 69 | ElNotification( |
no test coverage detected