zhy #51

Merged
hansu merged 2 commits from zhy into master 2020-07-07 09:49:10 +00:00
2 changed files with 10 additions and 1 deletions
Showing only changes of commit c4fb80d06b - Show all commits

View File

@ -40,4 +40,13 @@
* @return { String } 处理好的富文本
*/
unescapeHTML(temp){}
/**
* 上传文件(只能单文件上传)
* @param { String } url 服务器 url
* @param { String } filePath 要上传文件资源的路径
* @param { String } type 上传文件验证类型 默认: img 可选: video
* @return { object } promise 对象 resolve 为文件服务器地址 reject 为错误信息
*/
uploadFile({ url, filePath, type = 'img' } = {}) {}
```

View File

@ -12,7 +12,7 @@ const common = {
/**
* 上传文件(只能单文件上传)
* @param { String } url 服务器 url
* @param { String } filePath 要上传文件资源的路径(单文件上传)
* @param { String } filePath 要上传文件资源的路径
* @param { String } type 上传文件验证类型 默认: img 可选: video
* @return { object } promise 对象 resolve 为文件服务器地址 reject 为错误信息
*/