From d0e7d2260f64bbc2fe1f2652fa641ced3a97d8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=99=8C?= Date: Mon, 31 Jul 2023 17:59:41 +0800 Subject: [PATCH] no message --- src/layout/index.vue | 6 +++ src/views/system/log/index.vue | 33 +++++--------- src/views/user/group/index.vue | 5 ++- src/views/user/index/index.vue | 82 +++++++++++++++++----------------- 4 files changed, 62 insertions(+), 64 deletions(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index 99363a1..e55c9cd 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -275,7 +275,13 @@ this.nextMenu = this.filterUrl(route.children); if((!route.children || route.children.length == 0) && ( route.meta.type=='iframe' || route.component)){ this.$router.push({path: route.path}) + return ; } + + if (route.children.length > 0) { + this.$router.push({path: route.children[0].path}) + } + }, //转换外部链接的路由 filterUrl(map){ diff --git a/src/views/system/log/index.vue b/src/views/system/log/index.vue index b72aa3f..5b2075a 100644 --- a/src/views/system/log/index.vue +++ b/src/views/system/log/index.vue @@ -1,8 +1,7 @@