Skip to content

Commit 1898108

Browse files
skiqueluch1994
authored andcommitted
fix: 异步获取回收站数量 (#521)
1 parent eaa5e10 commit 1898108

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

web/src/management/pages/list/components/BaseList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ const dataList = computed(() => {
203203
return data.value.map((item) => {
204204
return {
205205
...item,
206-
'curStatus.date': item.curStatus.date,
207-
'subStatus.date': item.subStatus.date
206+
'curStatus.date': item.curStatus ? item.curStatus.date : '',
207+
'subStatus.date': item.subStatus ? item.subStatus.date : ''
208208
}
209209
})
210210
})

web/src/management/pages/list/components/RecycleBinList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ const dataList = computed(() => {
180180
return data.value.map((item) => {
181181
return {
182182
...item,
183-
'curStatus.date': item.curStatus.date,
184-
'subStatus.date': item.subStatus.date
183+
'curStatus.date': item.curStatus ? item.curStatus.date : '',
184+
'subStatus.date': item.subStatus ? item.subStatus.date : ''
185185
}
186186
})
187187
})

web/src/management/pages/list/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ const fetchSurveyList = async (params?: any) => {
327327
328328
onMounted(async () => {
329329
await Promise.all([fetchGroupList(), fetchSpaceList()])
330-
await getRecycleBinCount()
330+
// 异步获取回收站数量
331+
getRecycleBinCount()
331332
activeValue.value = 'all'
332333
workSpaceStore.changeGroup('all')
333334
await fetchSurveyList()

0 commit comments

Comments
 (0)