1,动态引入组件

components: { 
    importdata:()=>import(/* webpackChunkName: "importdata"  */'./importdata.vue'),
    flowButtons
  },

2,动态引入部分

let message = null;

import(/* webpackChunkName: "elementmessage" */'element-ui').then(({Message})=>{
    message = Message;
});

 

Logo

前往低代码交流专区

更多推荐