From ee386ab2753b15d03ac16f22617637e8eb889570 Mon Sep 17 00:00:00 2001 From: daihh Date: Mon, 31 Oct 2022 23:38:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index f2c10f3b..b96dfca7 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -79,16 +79,16 @@ const user = { }) }, refrashStudyTaskCount({ commit }) { - apiBoeCourse.cmtaskList({page:1,size:1}).then(res=>{ - if(res.status==200){ - let count = 0; - if(res.result.count > 0){ - count = res.result.count; - } - commit('SET_StudyTaskCount',count); - }else{ - console.log("读取学习任务数失败:"+res.message); - } + apiBoeCourse.cmtaskList({page:1,size:1,get_count:1}).then(res=>{ + if(res.status==200){ + let count = 0; + if(res.result.count > 0){ + count = res.result.count; + } + commit('SET_StudyTaskCount',count); + }else{ + console.log("读取学习任务数失败:"+res.message); + } }) }, //设置用户身份