Skip to content

Commit

Permalink
fix(GiCell): 修复 GiCellTags 组件的空数据问题
Browse files Browse the repository at this point in the history
- 在渲染标签之前增加对 data 的非空检查,避免潜在的运行时错误
- 优化了组件的健壮性,确保在 data 为 null 或 undefined时不会抛出错误
  • Loading branch information
GXSZone committed Nov 19, 2024
1 parent 681ad96 commit 068d959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/GiCell/GiCellTags.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<a-overflow-list v-if="data.length">
<a-overflow-list v-if="data && data.length">
<a-tag v-for="(item, index) in data" :key="index" size="small">
{{ item }}
</a-tag>
Expand Down

0 comments on commit 068d959

Please sign in to comment.