From c0540262592764de0019376b63a1e360ef3df86f Mon Sep 17 00:00:00 2001 From: zhangsir Date: Fri, 12 Jul 2024 15:57:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/manage/manage.js | 4 ++-- src/components/UserCenter/menu.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/manage/manage.js b/src/api/manage/manage.js index 9b80d515..44f0fd2b 100644 --- a/src/api/manage/manage.js +++ b/src/api/manage/manage.js @@ -25,8 +25,8 @@ const userRead = function(data){ return ajax.postJson(baseURL,'/todoTask/read',data); } //查询未读数量 -const queryTaskCounts = function(){ - return ajax.postJson(baseURL,'/todoTask/queryTaskCounts'); +const queryTaskCounts = function(obj){ + return ajax.postJson(baseURL,'/todoTask/queryTaskCounts',obj); } //领导力必修 const leadership = function(data){ diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue index c7986897..a7b93468 100644 --- a/src/components/UserCenter/menu.vue +++ b/src/components/UserCenter/menu.vue @@ -553,7 +553,7 @@ export default { Promise.all(promises).then(() => { sessionStorage.setItem('totalNums', this.fistTotals + this.pathTotals + this.growTotal); }); - apiManage.queryTaskCounts().then(res=>{ + apiManage.queryTaskCounts({}).then(res=>{ // this.proTotal =parseInt(res.data.count); //学习项目 this.fistTotal =parseInt(res.data.count1); // 领导力必修 this.pathTotal =parseInt(res.data.count2); // 学习路径