End "project and Todos": what could modify or readonly.

This commit is contained in:
Paolo Arena
2019-04-22 01:43:53 +02:00
parent 18acf720db
commit 08e2ece604
18 changed files with 214 additions and 1051 deletions

View File

@@ -62,7 +62,7 @@ Router.beforeEach(async (to: IMyRoute, from: IMyRoute, next) => {
next()
} else {
if (!to.meta.transparent && !to.meta.isModal) {
console.log('Route interceptor log: <4>')
// console.log('Route interceptor log: <4>')
ProgressBar.mutations.start()
}
else if (to.meta.transparent && !from.name) {

View File

@@ -98,7 +98,19 @@ export const routesList: IMyRouteConfig[] = [
// },
{
path: '/projects/:idProj',
name: 'progetti',
name: RouteNames.projects,
component: () => import('@/views/projects/proj-list/proj-list.vue'),
meta: {
requiresAuth: true,
async asyncData() {
await Projects.actions.dbLoad({ checkPending: false, onlyiffirsttime: true })
}
// middleware: [auth]
}
},
{
path: '/myprojects/:idProj',
name: RouteNames.myprojects,
component: () => import('@/views/projects/proj-list/proj-list.vue'),
meta: {
requiresAuth: true,
@@ -109,6 +121,7 @@ export const routesList: IMyRouteConfig[] = [
}
}
/*
{

View File

@@ -1,4 +1,6 @@
export const RouteNames = {
home: 'home',
login: 'login'
login: 'login',
projects: 'projects',
myprojects: 'myprojects'
}