From a74badc79af335b7da68a7cb5b2246e09784761d Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Wed, 12 Nov 2025 16:39:40 +0800
Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AE=B9=E7=9C=8B=E6=9D=BF=E9=A1=B5?=
=?UTF-8?q?=E6=8C=89=E9=92=AE=E5=AE=9E=E7=8E=B0=E7=A7=81=E6=9C=89=E5=92=8C?=
=?UTF-8?q?=E5=85=AC=E6=9C=89=E8=BD=AC=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/dashboard.js | 6 +++-
components/index/ContentDashboard.vue | 45 +++++++++++++++++++++------
2 files changed, 41 insertions(+), 10 deletions(-)
diff --git a/api/dashboard.js b/api/dashboard.js
index 77fca17..392ece6 100644
--- a/api/dashboard.js
+++ b/api/dashboard.js
@@ -11,7 +11,11 @@
*/
export const getDashboardBrief = ({ joinUserId, keys }) => {
// 构建查询参数字符串
- const params = [`joinUserId=${joinUserId}`];
+ let params=[]
+ if (joinUserId) {
+ params = [`joinUserId=${joinUserId}`];
+ }
+
if (keys && Array.isArray(keys)) {
keys.forEach((key) => {
params.push(`keys=${encodeURIComponent(key)}`);
diff --git a/components/index/ContentDashboard.vue b/components/index/ContentDashboard.vue
index 3593e25..815ca11 100644
--- a/components/index/ContentDashboard.vue
+++ b/components/index/ContentDashboard.vue
@@ -5,7 +5,16 @@
加载中...
+
+
+
+ 私有
+
+