1.0.1 • Published 1 year ago

elimgupload v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

在main.js文件中,添加下面代码

依赖于 element ui 需要先安装 element ui

基于若依后台管理系统开发 其中 js 文件夹中的 request.js 为若依后台管理系统自带的发送请求的js文件

js 文件夹中的 auth.js 也是若依自带的获取token的文件

js 文件夹中的 commom.js 是断点续传的接口的路径,直接改成项目对应的断点续传的路径就行了

js 文件夹中的 fileutils.js 是切片方法,借鉴的网页上的

该断点续传方法借鉴于网址:

import ElementUI from 'element-ui';

import 'element-ui/lib/theme-chalk/index.css';

import elimgupload from "elimgupload";

Vue.use(elimgupload)

<elimgupload :isEdit="isEdit" :fileType="fileType" :value="imgUrl" ref="imgUrlRef" @returnImgUrl="returnImgUrl" >

1.0.1

1 year ago