亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - vue vue-router breadcrumb issue?
學(xué)習(xí)ing
學(xué)習(xí)ing 2017-06-12 09:31:30
0
1
1068

Web project built by vue element UI, breadcrumbs Homepage>List>Content
How to write router.js

{
            path: '/index',
            component: CdnLayout,
            children: [
                { path: 'list', component: List, name: '列表頁' },
                { path: 'list/detal', component: Detail, name: '內(nèi)容'}
            ]
        },
 let matched = this.$route.matched.filter(item => item.name;
                );
                const first = matched[0];
                if (first && (first.name !== '首頁' || first.path !== '')) {
                     matched = [{ name: '首頁', path: '/index' }].concat(matched)

                }

So how do I write in this breadcrumb so that it can be displayed on the content page Home>List>Content

Thank you, waiting online

學(xué)習(xí)ing
學(xué)習(xí)ing

reply all(1)
過去多啦不再A夢

You have already traversed it, just use V-for loop to display it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template