refactor(订单组件): 提取订单按钮逻辑到工具函数并优化组件
将订单按钮的生成逻辑从组件中提取到工具函数getOrderButtons中,使组件更简洁 优化组件中订单状态变化的处理,直接使用传入的order对象 新增getOrderDetailButtons函数用于处理订单详情页按钮逻辑
Showing
2 changed files
with
66 additions
and
38 deletions
-
Please register or sign in to post a comment