[Vuejs]-How to use this.$notification of Ant Design (Vuejs) in .js file?

0👍

You can import the notification from ant design directly on .js files
eg

import { notification } from ‘ant-design-vue’;

notification.error({
message: ‘Error !’,
description: err.response.data.message,
class: ‘error’
})

Leave a comment