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:
pikachu1995@126.com
2026-09-29 10:48:44 +08:00
parent a6063874c7
commit 867b03ebfc
5 changed files with 336 additions and 206 deletions

View File

@@ -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();
}