From c36ccb9e2b9d97ad89d56c8a2208ad0ea77c1758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E4=BA=8C=E5=B0=8F?= Date: Sun, 5 Dec 2021 10:09:17 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/layout/index.vue.=20=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E4=B8=80=E7=BA=A7=20=E5=AF=B9=E5=BA=94=E7=9A=84?= =?UTF-8?q?=E4=BA=8C=E7=BA=A7=E8=8F=9C=E5=8D=95=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E7=90=86=E8=AE=BA=E4=B8=8A=EF=BC=8C=E6=98=AF=E8=A6=81?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E6=89=93=E5=BC=80=E4=B8=80=E7=BA=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E3=80=82=20=E8=BF=99=E6=A0=B7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=90=8E=EF=BC=8C=E5=90=8E=E7=AB=AF=E5=B0=B1=E4=B8=8D?= =?UTF-8?q?=E7=94=A8=E5=A4=84=E7=90=86=E4=BA=86=E3=80=82=20=E5=9B=A0?= =?UTF-8?q?=E4=B8=BA=E6=88=91=E5=90=8E=E7=AB=AF=E8=8F=9C=E5=8D=95=E9=80=92?= =?UTF-8?q?=E5=BD=92=E5=A4=84=E7=90=86=E6=97=B6=EF=BC=8C=E6=B2=A1=E6=83=B3?= =?UTF-8?q?=E5=A5=BD=E6=80=8E=E4=B9=88=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index 748c1685..7d5fc47d 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -273,7 +273,7 @@ showMenu(route) { this.pmenu = route; this.nextMenu = this.filterUrl(route.children); - if(!route.children && route.component){ + if((!route.children || route.children.length == 0) && route.component){ this.$router.push({path: route.path}) } },