@xtdev/xt-miniprogram-ui 1.2.85 → 1.2.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -230,6 +230,10 @@ Component({
|
|
|
230
230
|
console.log('onStartTakePhoto', e);
|
|
231
231
|
const _this = this;
|
|
232
232
|
const { customUpload, uploadApi, max, sourceType, fileList, fileType, tempFileList, version } = this.properties;
|
|
233
|
+
if (customUpload) {
|
|
234
|
+
_this.triggerEvent('upload', {});
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
233
237
|
if (version === 'v2') {
|
|
234
238
|
_this.properties.getWatermarkData().then(watermarkData => {
|
|
235
239
|
_this.setData({
|
|
@@ -239,10 +243,6 @@ Component({
|
|
|
239
243
|
})
|
|
240
244
|
return false;
|
|
241
245
|
}
|
|
242
|
-
if (customUpload) {
|
|
243
|
-
_this.triggerEvent('upload', {});
|
|
244
|
-
return;
|
|
245
|
-
}
|
|
246
246
|
if (!uploadApi || !uploadApi.url) {
|
|
247
247
|
wx.showToast({
|
|
248
248
|
title: '请传入上传接口',
|