feat(product): 優化編輯後的跳轉邏輯,支援依來源回傳詳情頁或列表

This commit is contained in:
2026-02-05 16:01:29 +08:00
parent 075b9f1c98
commit 1d5bc68444
4 changed files with 15 additions and 4 deletions

View File

@@ -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>