forked from DebaucheryLibrarian/traxxx
Adding alerted scene to stashes.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { get, post, del } from '../api';
|
||||
|
||||
function initAuthActions(_store, _router) {
|
||||
function initAuthActions(store, _router) {
|
||||
async function fetchMe({ commit }) {
|
||||
try {
|
||||
const user = await get('/session');
|
||||
@@ -18,6 +18,7 @@ function initAuthActions(_store, _router) {
|
||||
const user = await post('/session', credentials);
|
||||
|
||||
commit('setUser', user);
|
||||
await store.dispatch('fetchNotifications');
|
||||
|
||||
return user;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user