refactor(OrderPopup): 优化数据处理逻辑
- 在多个组件中替换数据处理逻辑,避免空数组判断 - 使用 data || [] 替代 if 语句,简化代码结构 - 统一处理空数据的情况,提高代码健壮性
Showing
7 changed files
with
22 additions
and
11 deletions
-
Please register or sign in to post a comment
- 在多个组件中替换数据处理逻辑,避免空数组判断 - 使用 data || [] 替代 if 语句,简化代码结构 - 统一处理空数据的情况,提高代码健壮性