Commit 80e5f1db authored by 李腾's avatar 李腾

fix: 修复首页快捷跳转地址

parent d5516013
const isProduction = process.env.NODE_ENV === 'production';
const isPre = process.env.PRE_ENV === 'pre';
const environment = 'yxm2';
const environment = 'sc';
const envAPi = {
api: `https://security-${environment}.liangkebang.net`, //'https://security-xyqb.liangkebang.net',
kdspOpApi: `https://sc-merchant-api-${environment}.liangkebang.net`,
......
......@@ -78,7 +78,10 @@ const Admin = props => {
<Col span={4}>
<Link
to={{
pathname: 'cancelBillManage',
pathname: 'afterSaleManage',
query: {
tab: '1',
},
}}
>
<strong>{pendingNum?.cancelOrderPendingAuditNum || 0}</strong>
......
......@@ -259,10 +259,11 @@ const AfterSale = props => {
// 监听路由query参数变化重新发起请求
useEffect(() => {
if (location?.query) {
const { orderNo: orderNumber } = location?.query;
const { orderNo: orderNumber, tab = '' } = location?.query;
form.setFieldsValue({
orderNo: orderNumber,
});
tabChange(tab);
if (actionRef.current) {
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