路由兼容

This commit is contained in:
仲么了
2024-02-28 11:24:44 +08:00
parent 593d1e5ca0
commit 964ed8724c
2 changed files with 38 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ const init = async () => {
item.path = item.routePath
item.name = item.routePath
item.keepalive = item.routePath
item.component = item.routeName || '/src/views/Event-boot/Region/overview.vue'
item.component = item.routeName.indexOf('/src/views/') > -1 ? item.routeName : `/src/views/${item.routeName}/index.vue`
item.type = item.children && item.children.length > 0 ? 'menu_dir' : 'menu'
item.menu_type = item.children && item.children.length > 0 ? null : 'tab'
if (item.children) {