feat: 优化组件导入与样式调整

- 在多个组件中将 require 替换为 import,提升代码可读性和一致性。
- 在 App.vue 中添加分类树的 API 请求,优化分类数据的加载逻辑。
- 更新样式以适配 Element Plus 组件,确保界面一致性。
- 删除不再使用的样式文件,简化项目结构。
This commit is contained in:
田香琪
2026-07-07 19:50:07 +08:00
parent cc86430ea4
commit 6b61b86585
42 changed files with 303 additions and 1375 deletions

View File

@@ -99,10 +99,14 @@ export default {
},
props: ["res"],
methods: {
handleClickGoods(id) {
this.$router.push({
query: { id },
path: "/goods/goods-info/goodsDetail",
handleClickGoods(goodsId) {
if (!goodsId) {
this.$Message.warning("商品信息不存在");
return;
}
this.$filters.customRouterPush({
name: "goods-operation-edit",
query: { id: goodsId },
});
},
},

View File

@@ -112,10 +112,14 @@ export default {
},
props: ["res"],
methods: {
handleClickGoods(id) {
this.$router.push({
query: { id },
path: "/goods/goods-info/goodsDetail",
handleClickGoods(goodsId) {
if (!goodsId) {
this.$Message.warning("商品信息不存在");
return;
}
this.$filters.customRouterPush({
name: "goods-operation-edit",
query: { id: goodsId },
});
},
}