john пре 8 месеци
родитељ
комит
c0561e71fc
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      frontEndMobile/src/views/AccountLogPage.vue
  2. 1 1
      frontEndMobile/src/views/HomePage.vue

+ 1 - 1
frontEndMobile/src/views/AccountLogPage.vue

@@ -72,7 +72,7 @@ const getAllRecordyDateFn = async () => {
   const res = await getAllRecordyDate(commonStore.bookInfo.id, userDate.value)
   console.log(59, res)
   let totalFee = 0
-  res.forEach((element) => {
+  res.data.forEach((element) => {
     totalFee += Number(element.total_fee)
   })
   console.log(64, totalFee)

+ 1 - 1
frontEndMobile/src/views/HomePage.vue

@@ -127,7 +127,7 @@ const pageInit = async () => {
   const res = await getAllRecordyMonth(1, `${yearStr.value}-${monthlyStr.value}`)
   let _totalFee = 0
   // 使用分组函数
-  const groupedData = groupByTime(res)
+  const groupedData = groupByTime(res.data)
   const new_time_record_list = []
   Object.keys(groupedData).forEach((time) => {
     new_time_record_list.push({