摘要: 最近使用elementUI的el-image发现经常会出现加载src失败的情况,问题估计就是el-image的src路径一旦初始化加载失败的话就没有异步刷新: 1.给:src设置默认值,避免图片加载失败的情况 2.加v-if判断:src中的value值是否为空或者:src的key值是否存在,是则加载 阅读全文
posted @ 2020-11-17 15:15 凤鑫 阅读(13932) 评论(0) 推荐(1) 编辑
摘要: <el-upload class="avatar-uploader" action="1" :show-file-list="false" accept="/xlsx" :before-upload="(file)=>{ return beforeAvatarUpload(file,null)}"> 阅读全文
posted @ 2020-11-04 13:57 凤鑫 阅读(125) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/hwy6/p/12390140.html 阅读全文
posted @ 2020-11-04 13:53 凤鑫 阅读(54) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/df2550c6f1be 阅读全文
posted @ 2020-10-28 17:55 凤鑫 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 封装数据流文件下载 downFile (res,name) { const content = res.data const blob = new Blob([content]) const fileName = `${name}.zip` if ('download' in document.cr 阅读全文
posted @ 2020-10-14 10:04 凤鑫 阅读(110) 评论(0) 推荐(0) 编辑