From 4c4e78026ebbabb86126dc592624a291e759737f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B3=E6=B8=85=E7=88=BD?= Date: Wed, 23 Apr 2025 18:03:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E7=AE=A1=E5=90=8E=E5=8F=B0=20-=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=88=97=E8=A1=A8=E6=95=B0=E6=8D=AE=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E6=97=B6=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=8D=E4=B8=A5=E8=B0=A8=E5=AF=BC=E8=87=B4=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/extend/library/ResponseHelper.php | 2 +- SuperAdmin/app/dashboard/projects/[id]/page.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Server/extend/library/ResponseHelper.php b/Server/extend/library/ResponseHelper.php index aa7c0294..ab17eb45 100644 --- a/Server/extend/library/ResponseHelper.php +++ b/Server/extend/library/ResponseHelper.php @@ -29,7 +29,7 @@ class ResponseHelper * @param mixed $data 错误数据 * @return \think\response\Json */ - public static function error($msg = '操作失败', $code = 400, $data = null) + public static function error($msg = '操作失败', $code = 400, $data = []) { return json([ 'code' => $code, diff --git a/SuperAdmin/app/dashboard/projects/[id]/page.tsx b/SuperAdmin/app/dashboard/projects/[id]/page.tsx index 80a97fb9..0fe60923 100644 --- a/SuperAdmin/app/dashboard/projects/[id]/page.tsx +++ b/SuperAdmin/app/dashboard/projects/[id]/page.tsx @@ -240,6 +240,8 @@ export default function ProjectDetailPage({ params }: { params: { id: string } } {isDevicesLoading ? (
加载中...
+ ) : devices.length === 0 ? ( +
暂无数据
) : (