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 @@ 加载中... + + + + 私有 + +