mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
修改接口
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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); // 学习路径
|
||||
|
||||
Reference in New Issue
Block a user