Use the plug-in vue.use

  • App.use () takes the plug-in as the first argument and the configuration item as the second

  • When defining a plug-in, you need to expose the install method, which is called by Vue when the plug-in is used
  • It introduces custom components by defining global components

  • Simple implementation of an on demand load