H5/pages/add-progress/index.vue
@@ -218,6 +218,15 @@ uni.chooseVideo({ camera: 'back', success: (res) => { const videoExtensions = /\.(mp4|avi|rmvb)$/i; if (!videoExtensions.test(res.name)) { uni.showToast({ title: '请上传mp4, avi, rmvb格式的视频', icon: 'none', duration: 3000 }) return } this.video.push('loading') this.againCklicFlag = true const tempFilePath = res.tempFilePath;