mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
docs(Uploader): fix uploadToCloud demo
https://github.com/youzan/vant-weapp/issues/4360
This commit is contained in:
parent
e9aa946db0
commit
3238dfed1e
@ -200,7 +200,7 @@ uploadToCloud() {
|
|||||||
Promise.all(uploadTasks)
|
Promise.all(uploadTasks)
|
||||||
.then(data => {
|
.then(data => {
|
||||||
wx.showToast({ title: '上传成功', icon: 'none' });
|
wx.showToast({ title: '上传成功', icon: 'none' });
|
||||||
const newFileList = data.map(item => { url: item.fileID });
|
const newFileList = data.map(item => ({ url: item.fileID }));
|
||||||
this.setData({ cloudPath: data, fileList: newFileList });
|
this.setData({ cloudPath: data, fileList: newFileList });
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user