mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-11-07 17:38:55 +08:00
refactor(buyer): 优化组件结构并提升用户体验
- Main.vue 路由逻辑改为使用当前路由信息 - 简化 Header.vue 中的购物车展示,优化布局与可访问性 - GoodsClassNav.vue 改为按条件渲染分类信息 - 完善 MyOrder.vue 的订单展示与交互,优化样式与结构 - 调整 message.js,更稳妥地处理 Promise 拒绝 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -104,7 +104,10 @@ export const Modal = {
|
||||
return options.onOk();
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((reason) => {
|
||||
if (reason !== "cancel" && reason !== "close") {
|
||||
return;
|
||||
}
|
||||
if (typeof options.onCancel === "function") {
|
||||
options.onCancel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user