提交 7fee3807 编写于 作者: 雪洛's avatar 雪洛

fix: app端上传文件时使用files报错的Bug

上级 1cdea3e5
import getRealPath from 'uni-platform/helpers/get-real-path'
// App端可以只使用files不传filePath和name
// import getRealPath from 'uni-platform/helpers/get-real-path'
export const uploadFile = {
url: {
type: String,
required: true
},
files: {
type: Array
},
filePath: {
type: String,
validator (value, params) {
params.type = getRealPath(value)
}
type: String
},
name: {
type: String
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册