diff --git a/src/api/common.js b/src/api/common.js index 3468e2d5..60856621 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -101,11 +101,11 @@ export const commonUploadVoiceFile = (file, url, data = {}, fileKey = 'voice') = } return reject('Other'); } catch (error) { - reject(new Error('Failed to parse response')); + reject(error); } }, fail(error) { - return reject('Other'); + return reject(error); } }); }); diff --git a/src/pages/courseRecord/courseStudyRecordDetail.vue b/src/pages/courseRecord/courseStudyRecordDetail.vue index d151f146..b8c5323d 100644 --- a/src/pages/courseRecord/courseStudyRecordDetail.vue +++ b/src/pages/courseRecord/courseStudyRecordDetail.vue @@ -105,17 +105,18 @@ position: relative; display: flex; flex-direction: column; + width: 100vw; height: 100vh; .top-bg { background: linear-gradient(16deg, rgba(234, 246, 255, 0) 0%, #e6eafd 100%); height: 480rpx; - width: 750rpx; + width: 100%; } .bot-bg { background: linear-gradient(136deg, rgba(234, 246, 255, 0) 0%, #e6eafd 100%); - width: 750rpx; + width: 100%; flex: 1; }