fix: key on menu list & product table
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user