This application belongs to the field of front-end multi-application integration, and presents a method for dynamic registration and exception monitoring of sub-applications based on micro-frontends. First, detailed sub-application information is configured in the management center, and dynamic menu routes are generated based on this information. Then, sub-applications are filtered according to their current status, enabling dynamic registration. When a sub-application menu is clicked, the
route changes, automatically triggering
route matching rules. After the sub-application is mounted, the user is redirected to the corresponding sub-application page. Finally,
event tracking is implemented in the sub-applications to enable global exception capture. When a front-end exception occurs in a sub-application, it is automatically captured, and the sub-application information and error logs are reported to the main application. The main application processes the error logs and stores them in the
database. This effectively avoids the complex operation of modifying configuration files when integrating sub-applications, while also enabling visual management of sub-application status and reducing the
workload of operation and
maintenance management of the micro-frontend architecture.