Skip to content

Notification

Ant Design提供了messagenotification组件。但是static method已经被弃用,所以不要直接使用。

应当使用kbMessage, kbNotification.

ts
import { kbNotification } from '@/components/atoms/KBMessageGlobal'

kbNotification.error({
  message: e.response?.data?.error,
  description: errorMessage,
})

Message

tsx
kbMessage.success('Success!')