Преглед на файлове

fix: discardReportDraft传参修复 - 对象改为直接传draftId

Xiaogang Liao преди 1 месец
родител
ревизия
6aa8d172fa
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      cfc-frontend/pages/health/report-confirm.vue

+ 1 - 1
cfc-frontend/pages/health/report-confirm.vue

@@ -623,7 +623,7 @@ export default {
         success: function(res) {
           if (res.confirm) {
             var discardFn = self.payload.type === 'tongue' ? discardTongue : discardReportDraft
-            discardFn({ draftId: self.draftId }).then(function() {
+            discardFn(self.draftId).then(function() {
               uni.showToast({ title: '已放弃', icon: 'none' })
               setTimeout(function() { uni.navigateBack() }, 500)
             }).catch(function() {