// 示例用法import uploadImage from '@/dlf/taro/uploadImage'// 从手机相册选择图片并上传服务器,得到服务器返回的图片地址const imageUploadApi = 'https://example.com'const imageUrl = await uploadImage(imageUploadApi) Copy
// 示例用法import uploadImage from '@/dlf/taro/uploadImage'// 从手机相册选择图片并上传服务器,得到服务器返回的图片地址const imageUploadApi = 'https://example.com'const imageUrl = await uploadImage(imageUploadApi)
图片上传接口地址
返回图片地址,或者在失败时返回undefined
Example