MK
Size: a a a
MK
AN
export default ({ store, router }) => {
router.afterEach(async () => {
if (store.state.isAuthTokenValid) {
await store.dispatch('getUserNotifications')
}
})
В
export default ({ store, router }) => {
router.afterEach(async () => {
if (store.state.isAuthTokenValid) {
await store.dispatch('getUserNotifications')
}
})
MA
AD
AN
В
MK
MK
AN
async function startApp({ store }) {
try {
await store.dispatch('appStart')
consoleconsole.log('appStart')
const result = await store.dispatch('
twoDispatch')
consoleconsole.log('start
twoDispatch', result)
consoleconsole.log('app
twoDispatch')
} catch (e) {
consoleconsole.log('startAppError', e)
}
}
export default startApp
result
ничего нетappStart
DP
AN
DP
DP
V
AN
AS
AN
AS
MK