mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-08 22:57:11 +08:00
fix: 修复文件管理没有文件时控制台报错
Closes #IAFDB0
This commit is contained in:
@@ -91,7 +91,7 @@ const getStatisticsData = async () => {
|
||||
unit: formatSize[1],
|
||||
data: []
|
||||
}
|
||||
resData.data.forEach((fs: FileStatisticsResp) => {
|
||||
resData.data?.forEach((fs: FileStatisticsResp) => {
|
||||
const matchedItem = FileTypeList.find((item) => item.value === fs.type)
|
||||
chartData.value.unshift({
|
||||
name: matchedItem ? matchedItem.name : '',
|
||||
|
Reference in New Issue
Block a user