vue项目 环境搭建

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)}"

 

posted @ 2019-07-24 17:22  Seven077  阅读(112)  评论(0编辑  收藏  举报