Commit ebbdaa3b authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

fix: show order detail

parent fa1a73b5
...@@ -31,7 +31,7 @@ export default function OrderDetail() { ...@@ -31,7 +31,7 @@ export default function OrderDetail() {
const fetchOrderDetail = async () => { const fetchOrderDetail = async () => {
if (!user.value?.token) return; if (!user.value?.token) return;
try { try {
let response = await axios.get("/api/u/order/detail?id=1", { let response = await axios.get("/api/u/order/detail?id=" + router.query.id, {
headers: { token: user.value.token }, headers: { token: user.value.token },
}); });
setOrderDetailList(response.data); setOrderDetailList(response.data);
......
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