Commit b364e4aa authored by 李腾's avatar 李腾

fix: 修复售后订单页面选中问题

parent 8447bd23
...@@ -263,10 +263,10 @@ const AfterSale = props => { ...@@ -263,10 +263,10 @@ const AfterSale = props => {
useEffect(() => { useEffect(() => {
if (location?.query) { if (location?.query) {
const { orderNo: orderNumber, tab } = location?.query; const { orderNo: orderNumber, tab } = location?.query;
if (tab) {
tabChange(tab); if (orderNumber) {
tabChange('');
} }
// setPageQueryOrderNo(orderNumber);
const params = { const params = {
orderNo: orderNumber, orderNo: orderNumber,
dealStatus: null, dealStatus: null,
...@@ -278,6 +278,10 @@ const AfterSale = props => { ...@@ -278,6 +278,10 @@ const AfterSale = props => {
form.setFieldsValue(params); form.setFieldsValue(params);
setTableParams(params); setTableParams(params);
if (tab) {
tabChange(tab);
}
if (actionRef.current) { if (actionRef.current) {
actionRef.current.reload(); actionRef.current.reload();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment