fix: key on menu list & product table

This commit is contained in:
2021-12-15 15:54:03 +07:00
parent 6b00b4bb13
commit 1be4d4531d
3 changed files with 6 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ export const Product = observer(() => {
const handleChangeTabPane = async (key) => {
store.product.filterCategory = key;
console.log(key);
// console.log(key);
await store.product.getData();
};
@@ -73,7 +73,7 @@ export const Product = observer(() => {
</Row>
<Tabs onChange={handleChangeTabPane} size="default" tabBarGutter="50">
{store.product.dataCategories.map((item) => (
{store.product.dataCategories.map((item, idx) => (
<TabPane tab={item.name} key={item.id}>
{/* <ProductComponent category={item.name} /> */}
<ProductComponent />