1.前端安装
安装项目:vue init webpack docvote
进入docvote里:cd docvote
安装脚手架:cnpm i
运行:npm run dev
2.异步加载
const voteindex =() => import('@/components/voteindex');
3.element安装
https://element.eleme.io/#/zh-CN/component/installation
4.element 的el-upload的change事件如何传递当前索引
:on-change="(file,fileList)=>{return changeFile(file,fileList, scope.$index)}"