Skip to content

Commit

Permalink
chore: error notification will be closed after 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Orchardxyz committed Jan 10, 2024
1 parent 5a87997 commit 1a05619
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

### [Unreleased]

### Changed

- Error notification will be closed after 5 seconds.

### Fixed

- Generate interface failed beacuse of the definition which has the name with slash.
Expand Down
4 changes: 2 additions & 2 deletions webview/src/utils/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const notification: Notification = {
warning: (description, config) => {
AntdNotification.warning({ message: '警告信息', description, duration: 5, ...config });
},
// 错误信息默认不关闭
// 错误信息默认 5 秒后关闭
error: (description, config) => {
AntdNotification.error({ message: '错误提示', description, duration: null, ...config });
AntdNotification.error({ message: '错误提示', description, duration: 5, ...config });
},
};

Expand Down

0 comments on commit 1a05619

Please sign in to comment.