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

@@ -65,9 +65,9 @@ export default {
this.$router.push({
path: '/login',
query: {
rePath: this.$router.history.current.path,
query: JSON.stringify(this.$router.history.current.query)
}
rePath: this.$route.path,
query: JSON.stringify(this.$route.query || {}),
},
});
}
});