- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 .sync的使用
.sync的使用: <el-pagination background @current-change=“handleCurrentChange” :page-size=“pageInfo.pageSize” layout=“slot, prev, pager, next” :total=“total” :current-page.sync=“pageInfo.pageNum” > 共 {{ total }} 条数据 ##这里的pageInfo.pageNum相当于和current-page双
2022-03-01 10:47:59 212
原创 流文件的处理
后端返回流文件的时候的处理: axios.get(url, { ...config, headers: { platform: 'pc' }, params, responseType: 'blob', }); //这里的responseType: 'blob',确定了返回的类型为流 //处理流的方法 getFailData({ uuid }) // .then(res=>res.blob()) .then((res) => {
2021-08-27 16:52:34 418
原创 文件的手动上传
<el-upload class="upload-demo" ref="upload" :on-change="onChange" action="#" :limit="1" :file-list="fileList" :on-remove="handleRemove" :auto-upload="false" > .
2021-08-27 16:32:46 124
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人