mirror of
https://github.com/nocobase/nocobase
synced 2024-11-17 12:36:20 +00:00
110b00bc01
* chore: add translation * fix(Data-template): fix bug when deleting fields --------- Co-authored-by: chenos <chenlinxh@gmail.com>
9 lines
169 B
TypeScript
9 lines
169 B
TypeScript
import { notification } from 'antd';
|
|
|
|
export const showToast = (message, type = 'info', duration = 5000) => {
|
|
notification[type]({
|
|
message,
|
|
duration,
|
|
});
|
|
};
|