fix: undefined get order info

dev/chat
Lei OT 1 year ago
parent 876d94cacf
commit 4778081a86

@ -9,13 +9,13 @@ import QuotesHistory from './QuotesHistory'
const CustomerProfile = (() => {
const { order_sn: order_sn } = useParams()
const { orderDetail, customerDetail, lastQuotation, quotationList,
fetchOrderDetail, setOrderPropValue
fetchOrderDetail, setOrderPropValue
} = useOrderStore()
useEffect(() => {
fetchOrderDetail(order_sn)
if (order_sn) fetchOrderDetail(order_sn)
}, [order_sn])
let regularText = ''
if (orderDetail.buytime > 0) regularText = '(R' + orderDetail.buytime + ')'

Loading…
Cancel
Save