fix(product): 補回清單頁面的 is_active 資料回傳並修正表格 colSpan
This commit is contained in:
@@ -100,6 +100,7 @@ class ProductController extends Controller
|
|||||||
'price' => (float) $product->price,
|
'price' => (float) $product->price,
|
||||||
'member_price' => (float) $product->member_price,
|
'member_price' => (float) $product->member_price,
|
||||||
'wholesale_price' => (float) $product->wholesale_price,
|
'wholesale_price' => (float) $product->wholesale_price,
|
||||||
|
'is_active' => (bool) $product->is_active,
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ export default function ProductTable({
|
|||||||
<TableBody>
|
<TableBody>
|
||||||
{products.length === 0 ? (
|
{products.length === 0 ? (
|
||||||
<TableRow>
|
<TableRow>
|
||||||
<TableCell colSpan={7} className="text-center py-8 text-gray-500">
|
<TableCell colSpan={9} className="text-center py-8 text-gray-500">
|
||||||
無符合條件的商品資料
|
無符合條件的商品資料
|
||||||
</TableCell>
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|||||||
Reference in New Issue
Block a user