I was assigned to a project that would send multiple emails from multiple sites simultaneously and when once done sending all emails from the site it should show an alert that notifies the admin that the task is done. At first it is little bit confusing because even the admin is not on the task page it should see the alert so basically it should see anywhere in the page as long as it is logged in. But it is not hard to do specially using vuex.
I assume you already created a project and you just needed this to add in it. In store/modules I created a new file named notifications.js and then it should look like this: Then I created two components named TheNotification.vue and TheNotifications.vue.
And if you are new to vuex and not using namespaces to your modules you can just do your commit like this this.$store.commit(ADD_NOTIFICATION, {}); Written by