fix(inventory): 修復倉庫低庫存警告計算與全站租戶名稱動態化
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout';
|
||||
import { Link, Head } from '@inertiajs/react';
|
||||
import { Link, Head, usePage } from '@inertiajs/react';
|
||||
import { PageProps } from '@/types/global';
|
||||
import { cn } from "@/lib/utils";
|
||||
import {
|
||||
Package,
|
||||
@@ -27,6 +28,7 @@ interface Props {
|
||||
}
|
||||
|
||||
export default function Dashboard({ stats }: Props) {
|
||||
const { branding } = usePage<PageProps>().props;
|
||||
const cardData = [
|
||||
{
|
||||
label: '商品總數',
|
||||
@@ -75,7 +77,7 @@ export default function Dashboard({ stats }: Props) {
|
||||
|
||||
return (
|
||||
<AuthenticatedLayout>
|
||||
<Head title="控制台 - 小小冰室 ERP" />
|
||||
<Head title={`控制台 - ${branding?.short_name || 'Star'} ERP`} />
|
||||
|
||||
<div className="p-8 max-w-7xl mx-auto">
|
||||
<div className="mb-8">
|
||||
@@ -83,7 +85,7 @@ export default function Dashboard({ stats }: Props) {
|
||||
<TrendingUp className="h-6 w-6 text-primary-main" />
|
||||
系統總覽
|
||||
</h1>
|
||||
<p className="text-gray-500 mt-1">歡迎回來,這是您的小小冰室 ERP 營運數據概況。</p>
|
||||
<p className="text-gray-500 mt-1">歡迎回來,這是您的 {branding?.short_name || 'Star'} ERP 營運數據概況。</p>
|
||||
</div>
|
||||
|
||||
{/* 主要數據卡片 */}
|
||||
|
||||
Reference in New Issue
Block a user