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