
1. 安装autofit.js组件npmi autofit.js在App.vue中编辑templatetransitionnamefaderouter-view/router-view/transition/templatescriptimportautofit fromautofit.jsexportdefault{mounted(){this.$nextTick((){autofit.init({el:body, dw:1920, dh:1080, resize:true})})}}/script2. 安装auto-elementui组件npminstallauto-element-S在main.js中编辑importAutoElement fromauto-elementVue.use(AutoElement,{offset:body})