++ Added "Projects" (step 1b)
This commit is contained in:
@@ -50,7 +50,7 @@ Router.beforeEach(async (to: IMyRoute, from: IMyRoute, next) => {
|
||||
// await LoginStore.actions.checkUserSession();
|
||||
// }
|
||||
|
||||
console.log(to, from)
|
||||
// console.log(to, from)
|
||||
|
||||
if (from.name && from.matched[0].name === to.name && from.meta.isModal) {
|
||||
next()
|
||||
|
||||
@@ -4,7 +4,7 @@ import { RouteNames } from './route-names'
|
||||
import { tools } from '@src/store/Modules/tools'
|
||||
|
||||
import auth from '../middleware/auth'
|
||||
import { Todos } from "@store"
|
||||
import { Projects, Todos } from "@store"
|
||||
|
||||
interface IMyMeta {
|
||||
title?: string,
|
||||
@@ -62,7 +62,7 @@ export const routesList: IMyRouteConfig[] = [
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
async asyncData() {
|
||||
await Todos.actions.dbLoadTodo({ checkPending: false })
|
||||
await Todos.actions.dbLoad({ checkPending: false })
|
||||
}
|
||||
// middleware: [auth]
|
||||
}
|
||||
@@ -96,7 +96,10 @@ export const routesList: IMyRouteConfig[] = [
|
||||
name: 'progetti',
|
||||
component: () => import('@/views/projects/proj-list/proj-list.vue'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
requiresAuth: true,
|
||||
async asyncData() {
|
||||
await Projects.actions.dbLoad({ checkPending: false })
|
||||
}
|
||||
// middleware: [auth]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user