Adding alerted scene to stashes.

This commit is contained in:
DebaucheryLibrarian
2021-04-29 01:45:01 +02:00
parent 4806b0aa41
commit 3f55b90ab8
8 changed files with 77 additions and 46 deletions

View File

@@ -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;
}