feat: 售后页面多余接口调用问题
This commit is contained in:
@@ -153,12 +153,16 @@
|
||||
};
|
||||
// 申请售后
|
||||
const applyAfterSale = () => {
|
||||
const source = String(props?.data?.__source || props?.data?.source || '').trim();
|
||||
const __src = String(props?.data?.__source || props?.data?.source || '').trim();
|
||||
const __ty = String(props?.data?.type || '').trim();
|
||||
// 避免把整个订单对象里的同名字段 type/source/__source 直接展开污染 query(
|
||||
// 否则普通商城订单也可能因为 data.type=5(或商城订单里的其他数字type)在 apply.vue 里误走 ai 接口)。
|
||||
sheep.$router.go('/pages/order/aftersale/apply', {
|
||||
...props.data,
|
||||
id: props?.data?.id,
|
||||
orderId: props?.data?.id,
|
||||
...(source ? { source } : {}),
|
||||
no: props?.data?.no,
|
||||
...(__src ? { source: __src } : {}),
|
||||
...(__ty ? { openOrderType: __ty } : {}),
|
||||
});
|
||||
};
|
||||
// 确认收货
|
||||
|
||||
Reference in New Issue
Block a user