Commit 8d71d1d0 authored by Gavin Peng's avatar Gavin Peng

fix: 送货计划协同新增送货通知单离开页面未清理变量缓存

parent cebcc66d
......@@ -196,6 +196,7 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
const url = deliveryPlanType === '1' ? '/memberCenter/order/deliveryNoticeManagement/awaitB2B/add' : '/memberCenter/order/deliveryNoticeManagement/awaitSRM/add'
noticePath[time] = res.data
localStorage.setItem('NOTICE_PATH', JSON.stringify(noticePath))
selectedTableItem.clear()
setTimeout(() => {
history.push(`${url}?time=${time}`)
}, 1000)
......@@ -221,7 +222,7 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
const time = new Date().getTime()
noticePath[time] = res.data
localStorage.setItem('DELIVERY_NOTICE_PATH', JSON.stringify(noticePath))
// 判断跳转
selectedTableItem.clear()
setTimeout(()=> {
history.push(`/memberCenter/order/deliveryNotice/synergy/create?time=${time}&ot=${deliveryPlanType}`)
},1000)
......
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