赞
踩
npm i spark-md5 --save
- <template>
- <div class="myDiv">
- <el-upload class="upload-demo" action="#" :on-change="uploadFile" :show-file-list="true" :file-list="fileList" :auto-upload="false" ref="uploadfile" :limit="1">
- <el-button size="small" type="primary" :loading="loadingFile">上传文件</el-button>
- </el-upload>
- </div>
- </template>
-
- <script>
- import SparkMD5 from "spark-md5";
- const chunkSize = 10 * 1024 * 1024;//定义分片的大小 暂定为10M,方便测试
- import { message_s, message_w } from '@/methods/element';//引入elementui消息提示框
- export default {
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。