Config Page
This commit is contained in:
@@ -115,13 +115,15 @@ export const ProductComponent = observer((props) => {
|
||||
key: "action",
|
||||
render: (text, record) => (
|
||||
<Button
|
||||
onClick={async () => {
|
||||
history.push(LINKS.PRODUCT_DETAIL.replace(":id", record.id));
|
||||
//console.log(record.id)
|
||||
}}
|
||||
>
|
||||
Detail
|
||||
</Button>
|
||||
onClick={async () => {
|
||||
await store.product.getDetail(record.product_id);
|
||||
await store.product.getDetailProduct(record.product_id);
|
||||
history.push(LINKS.PRODUCT_DETAIL.replace(":id", record.product_id));
|
||||
//console.log(record.product_id);
|
||||
}}
|
||||
>
|
||||
Detail
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user