|
|
@@ -307,8 +307,9 @@ export default {
|
|
|
uni.showToast({ title: data.message || '解析失败', icon: 'none' })
|
|
|
}
|
|
|
},
|
|
|
- fail: function() {
|
|
|
+ fail: function(err) {
|
|
|
self.parsingPreview = false
|
|
|
+ console.error('PDF上传失败', err)
|
|
|
uni.showToast({ title: '上传失败', icon: 'none' })
|
|
|
}
|
|
|
})
|
|
|
@@ -330,8 +331,9 @@ export default {
|
|
|
uni.showToast({ title: data.message || '解析失败', icon: 'none' })
|
|
|
}
|
|
|
},
|
|
|
- fail: function() {
|
|
|
+ fail: function(err) {
|
|
|
self.parsingPreview = false
|
|
|
+ console.error('图片上传失败', err)
|
|
|
uni.showToast({ title: '上传失败', icon: 'none' })
|
|
|
}
|
|
|
})
|