keep alive false in graph

This commit is contained in:
Wenjie Zhang 2024-09-14 02:47:04 +08:00
parent 89af621753
commit 9789f648e7

View File

@ -39,7 +39,7 @@ const router = createRouter({
path: '', path: '',
name: 'Graph', name: 'Graph',
component: () => import('../views/GraphView.vue'), component: () => import('../views/GraphView.vue'),
meta: { keepAlive: true } meta: { keepAlive: false }
} }
] ]
}, },
@ -58,6 +58,7 @@ const router = createRouter({
path: ':database_id', path: ':database_id',
name: 'databaseInfo', name: 'databaseInfo',
component: () => import('../views/DataBaseInfoView.vue'), component: () => import('../views/DataBaseInfoView.vue'),
meta: { keepAlive: false }
} }
] ]
}, },
@ -74,39 +75,30 @@ const router = createRouter({
} }
] ]
}, },
// { {
// path: '/monitor', path: '/tools',
// name: 'monitor', name: 'tools',
// component: AppLayout, component: AppLayout,
// children: [ children: [
// { {
// path: '', path: '',
// name: 'monitor', name: 'ToolsView',
// component: () => import('../views/MonitorView.vue'), component: () => import('../views/ToolsView.vue'),
// meta: { keepAlive: true } meta: { keepAlive: true }
// } },
// ] // {
// }, // path: ':id',
// name: 'ToolsComponent',
// component: () => import('../views/ToolsFooComponent.vue'),
// meta: { keepAlive: true }
// }
]
},
{ {
path: '/:pathMatch(.*)*', path: '/:pathMatch(.*)*',
name: 'NotFound', name: 'NotFound',
component: () => import('../views/EmptyView.vue') component: () => import('../views/EmptyView.vue')
} },
// {
// path: '/kg',
// name: 'knowledge-graph',
// // route level code-splitting
// // this generates a separate chunk (About.[hash].js) for this route
// // which is lazy-loaded when the route is visited.
// component: () => import('../views/GraphView.vue'),
// meta: { keepAlive: true }
// },
// {
// path: '/about',
// name: 'about',
// component: () => import('../views/AboutView.vue'),
// meta: { keepAlive: true }
// }
] ]
}) })