Vue provides a straight-forward syntax for loading components at runtime to help shave off initial bundle size. You simply define a function that returns an object with a component
property pointing to a promise that loads a component, then Vue takes care of the rest for you.
https://vuejs.org/v2/guide/components-dynamic-async.html#Handling-Loading-State
原文地址:https://www.cnblogs.com/Answer1215/p/9373746.html
时间: 2024-10-25 11:44:59