feat(product): 優化編輯後的跳轉邏輯,支援依來源回傳詳情頁或列表
This commit is contained in:
@@ -67,7 +67,7 @@ export default function ProductShow({ product }: Props) {
|
||||
</div>
|
||||
<div className="flex gap-2">
|
||||
<Can permission="products.edit">
|
||||
<Link href={route('products.edit', product.id)}>
|
||||
<Link href={route('products.edit', { product: product.id, from: 'show' })}>
|
||||
<Button className="button-filled-primary">
|
||||
編輯商品
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user