XiaoFans e63e2152d6 Fix: Ensure route.children existence before accessing in initRouter()
In the initRouter() function, added a check to ensure the existence of route.children before accessing it. This prevents the "TypeError: Cannot read properties of undefined" error that occurred when trying to access route.children[0] without confirming its existence. The check ensures that route.children is present and not an empty array before proceeding to access its elements.
2024-02-16 22:55:10 +08:00
..
2023-07-25 19:49:16 +08:00
2023-08-25 08:33:24 +08:00