[Vue @Component] Handle Errors and Loading with Vue Async Components

Because async components are not bundled with your app, they need to be loaded when requested. This means that your network could be slow, go down, or the file could be completely missing. This lesson shows you how to handle these scenarios with Vue loading components and Error components.

https://vuejs.org/v2/guide/components-dynamic-async.html#Handling-Loading-State

猜你喜欢

转载自www.cnblogs.com/Answer1215/p/9373809.html