diff --git a/src/pages/primevue/fns.tsx b/src/pages/primevue/fns.tsx index 46dcc00..d0f82ee 100644 --- a/src/pages/primevue/fns.tsx +++ b/src/pages/primevue/fns.tsx @@ -57,8 +57,11 @@ export const openDialog = async () => { }; export const openToast = () => { - ToastService.add({ severity: 'info', summary: '提示', life: 3000, detail: '消息内容' }); - ToastService.add({ severity: 'info', summary: '提示', life: 0, detail: '消息内容' }); + // ToastService.add({ severity: 'info', summary: '提示', life: 3000, detail: '消息内容' }); + // ToastService.add({ severity: 'info', summary: '提示', life: 0, detail: '消息内容' }); + ['success', 'info', 'warn', 'error', 'secondary', 'contrast', undefined].forEach((severity: any) => { + ToastService.add({ severity, summary: severity, life: 3000, detail: '消息内容' }); + }); }; export const openConfirm = async () => {