Skip to content

配置了多级菜单,导致刷新页面等待时间超过10秒以上 #1316

@cccsaber

Description

@cccsaber
版本号:

V3.7.0

问题描述:

配置一级菜单12条,每一级菜单下有3-5个二级菜单,每二级菜单有3-5个三级菜单,页面刷新 起码要 等个15秒左右

截图&代码:

前端文件 src/router/helper/routeHelper.ts 这个函数asyncImportRoute 递归性能损耗导致的

前端安装环境:
  • 采用的是pnpm安装
  • node版本号:v16.14.2
  • pnpm版本号:8.7.4

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions