Closed ChunAllen closed 5 years ago
Hey, have you tried this syntax?
store/modules/users.js
import Vue from 'vue';
export const state = () => ({
users: []
});
export const actions = () => ({
getUsers({commit}) {
Vue.noty.success('HELLO WORLD');
}
});
Let me know!
It's working now. Thanks @renoguyon
How can I use the $noty inside Vuex modules?
Currently what I'm doing is this: pages/index.vue
store/modules/users.js