麵包屑功能完善
This commit is contained in:
3
resources/js/Pages/Vendor/Index.tsx
vendored
3
resources/js/Pages/Vendor/Index.tsx
vendored
@@ -7,6 +7,7 @@ import VendorDialog from "@/Components/Vendor/VendorDialog";
|
||||
import AuthenticatedLayout from "@/Layouts/AuthenticatedLayout";
|
||||
import { Head, router } from "@inertiajs/react";
|
||||
import { debounce } from "lodash";
|
||||
import { getBreadcrumbs } from "@/utils/breadcrumb";
|
||||
|
||||
export interface Vendor {
|
||||
id: number;
|
||||
@@ -124,7 +125,7 @@ export default function VendorManagement({ vendors, filters }: PageProps) {
|
||||
};
|
||||
|
||||
return (
|
||||
<AuthenticatedLayout>
|
||||
<AuthenticatedLayout breadcrumbs={getBreadcrumbs("vendors")}>
|
||||
<Head title="廠商資料管理" />
|
||||
<div className="container mx-auto p-6 max-w-7xl">
|
||||
{/* Header */}
|
||||
|
||||
3
resources/js/Pages/Vendor/Show.tsx
vendored
3
resources/js/Pages/Vendor/Show.tsx
vendored
@@ -23,6 +23,7 @@ import AddSupplyProductDialog from "@/Components/Vendor/AddSupplyProductDialog";
|
||||
import EditSupplyProductDialog from "@/Components/Vendor/EditSupplyProductDialog";
|
||||
import type { Vendor } from "@/Pages/Vendor/Index";
|
||||
import type { SupplyProduct } from "@/types/vendor";
|
||||
import { getShowBreadcrumbs } from "@/utils/breadcrumb";
|
||||
|
||||
interface Pivot {
|
||||
last_price: number | null;
|
||||
@@ -103,7 +104,7 @@ export default function VendorShow({ vendor, products }: ShowProps) {
|
||||
};
|
||||
|
||||
return (
|
||||
<AuthenticatedLayout>
|
||||
<AuthenticatedLayout breadcrumbs={getShowBreadcrumbs("vendors", `廠商詳情 (${vendor.name})`)}>
|
||||
<Head title={`廠商詳情 - ${vendor.name}`} />
|
||||
<div className="container mx-auto p-6 max-w-7xl">
|
||||
{/* 返回按鈕 */}
|
||||
|
||||
Reference in New Issue
Block a user