From 906cda03857f71836fede5072a02386aa3eaea49 Mon Sep 17 00:00:00 2001 From: lifenlong Date: Wed, 14 Oct 2026 21:06:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(seller):=20=E4=BF=AE=E5=A4=8D=E4=B8=89?= =?UTF-8?q?=E5=A4=84=E5=8E=86=E5=8F=B2=E9=81=97=E7=95=99=E7=9A=84=E6=81=92?= =?UTF-8?q?=E5=81=87=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - coupon-receive: 路由监听中 couponId 判断取错了来源(实际应判断 query.couponId), 导致优惠券列表页切换时永不刷新;changeSelect 中 getType 判断改为读表单值 searchForm.getType - addLive: 添加直播商品时 roomId 取 route.query.roomId 恒为 undefined,改为页面实际参数 route.query.id - shopSetting: tab 切换回调 v == "INFO" 恒为 false(Element Plus 传 pane 对象), 改为读 pane.paneName,基本信息/退货地址 tab 的数据重载恢复正常 --- seller/src/views/promotion/coupon/coupon-receive.vue | 8 +++----- seller/src/views/promotion/live/addLive.vue | 2 +- seller/src/views/shop/shopSetting.vue | 7 ++++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/seller/src/views/promotion/coupon/coupon-receive.vue b/seller/src/views/promotion/coupon/coupon-receive.vue index 184bb4b17..e49d857ef 100644 --- a/seller/src/views/promotion/coupon/coupon-receive.vue +++ b/seller/src/views/promotion/coupon/coupon-receive.vue @@ -152,7 +152,7 @@ import { useAppStore } from "@/stores/app"; defineOptions({ name: "coupon-recevie" }); -const props = defineProps({ +defineProps({ promotionStatus: { type: String, default: "", @@ -186,8 +186,7 @@ watch( () => route.query, (query) => { searchForm.couponId = query.couponId; - // 原代码此处判断的 couponId 在 data 中并不存在,恒为 undefined;保持原行为 - if (props.couponId) { + if (query.couponId) { getDataList(); } else { searchFormRef.value?.resetFields(); @@ -226,8 +225,7 @@ function handleSearch() { function changeSelect(e) { selectList.value = e; selectCount.value = e.length; - // 原代码此处判断的 getType 组件并未声明该 prop,恒为 undefined;保持原行为 - if (props.getType === "ACTIVITY") check(); + if (searchForm.getType === "ACTIVITY") check(); } function getDataList() { diff --git a/seller/src/views/promotion/live/addLive.vue b/seller/src/views/promotion/live/addLive.vue index 95f071e6b..859dadf4b 100644 --- a/seller/src/views/promotion/live/addLive.vue +++ b/seller/src/views/promotion/live/addLive.vue @@ -234,7 +234,7 @@ function callBackData(way) { liveGoodsVisible.value = false; spinShow.value = true; addLiveGoods({ - roomId: route.query.roomId, + roomId: route.query.id, liveGoodsId: way.liveGoodsId, goodsId: way.goodsId, }).then((res) => { diff --git a/seller/src/views/shop/shopSetting.vue b/seller/src/views/shop/shopSetting.vue index 13e80c3fd..06ff1acdf 100644 --- a/seller/src/views/shop/shopSetting.vue +++ b/seller/src/views/shop/shopSetting.vue @@ -364,13 +364,14 @@ function handleSubmit() { } //tab切换 -function handleClickType(v) { +function handleClickType(pane) { + const name = pane.paneName; //退款 - if (v == "INFO") { + if (name === "INFO") { getShopInfo(); } //退货 - if (v == "REFUND_GOODS_ADDRESS") { + if (name === "REFUND_GOODS_ADDRESS") { getRefundGoodsAddress(); } }