Fixes InfraMammary screen not display when at least one section doesn't meet the display condition (#6312)

This commit is contained in:
Hoang Nguyen 2022-04-25 19:07:22 +07:00 committed by GitHub
parent 523805c8bc
commit 6471f8418a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,6 +214,9 @@ export default {
fetchData () {
this.routes = {}
for (const section of this.sections) {
if (router.resolve('/' + section.substring(0, section.length - 1)).matched[0].redirect === '/exception/404') {
continue
}
const node = router.resolve({ name: section.substring(0, section.length - 1) })
this.routes[section] = {
title: node.meta.title,