fix: undefined get order info

dev/chat
Lei OT 2 years ago
parent 876d94cacf
commit 4778081a86

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

Loading…
Cancel
Save