修改接口

This commit is contained in:
zhangsir
2024-07-12 15:57:05 +08:00
parent 482cd48571
commit c054026259
2 changed files with 3 additions and 3 deletions

View File

@@ -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){

View File

@@ -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); // 学习路径