修正多处问题
This commit is contained in:
@@ -54,7 +54,9 @@ function applyCardInfo(store) {
|
||||
export function syncStats(store) {
|
||||
store.stats = {
|
||||
...store.stats,
|
||||
pointsBalance: store.stats.pointsBalance ?? 1250
|
||||
checkInCount: store.stats.checkInCount ?? 0,
|
||||
courseCount: store.stats.courseCount ?? 0,
|
||||
pointsBalance: store.stats.pointsBalance ?? 0
|
||||
}
|
||||
return store
|
||||
}
|
||||
@@ -230,7 +232,7 @@ export function getCenterPageData(store) {
|
||||
return {
|
||||
stats: {
|
||||
checkInCount: store.stats?.checkInCount ?? 0,
|
||||
trainingHours: store.stats?.trainingHours ?? 0,
|
||||
courseCount: store.stats?.courseCount ?? 0,
|
||||
pointsBalance: store.stats?.pointsBalance ?? 0
|
||||
},
|
||||
cardInfo: { ...store.cardInfo },
|
||||
|
||||
Reference in New Issue
Block a user