|
@@ -49,8 +49,8 @@ function isDashboard(route) {
|
|
|
}
|
|
|
|
|
|
function handleLink(item) {
|
|
|
- const { redirect, path, children } = item
|
|
|
- if (children && children.length > 0) return
|
|
|
+ const { redirect, path, meta } = item
|
|
|
+ if (meta.type == '0') return
|
|
|
if (redirect) {
|
|
|
router.push(redirect).catch((err) => {
|
|
|
console.warn(err)
|