Vue route lazy loading failed

1, using the route lazy load const a = () = > import ("view/a.vue");, defines the route b component as a
2, click the button to display the b page, because the asynchronous loading of the route is used, the a component may fail to load, so that the click seems to have no effect.
3, excuse me, is there any good way to deal with it?

Feb.27,2022

ide/components-dynamic-async.html-sharp%E5%A4%84%E7%90%86%E5%8A%A0%E8%BD%BD%E7%8A%B6%E6%80%81" rel=" nofollow noreferrer "> https://cn.vuejs.org/v2/guide.
can specify the loading state

Menu