修改接口

This commit is contained in:
zhangsir
2024-07-12 14:34:03 +08:00
parent 2dc9bcdbd3
commit 482cd48571
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ const userRead = function(data){
}
//查询未读数量
const queryTaskCounts = function(){
return ajax.get(baseURL,'/todoTask/queryTaskCounts');
return ajax.postJson(baseURL,'/todoTask/queryTaskCounts');
}
//领导力必修
const leadership = function(data){

View File

@@ -1,6 +1,6 @@
<template>
<div>
<div style="margin-top: 50px;" v-if="isType == 9">
<div style="margin-top: 50px;" v-if="isType == 9||couresList.length == 0">
<el-empty description="您还没有学习数据"></el-empty>
</div>
<div v-else>
@@ -157,7 +157,7 @@ export default {
if(this.$route.query.type==1 || !this.$route.query.type){
type = '0'
}
apiManage.userRead({type,id:item.cmtask_id})
// apiManage.userRead({type,id:item.cmtask_id})
if(item.cmtask_type==1){ //学习路径图
let params=encodeURIComponent('routerId='+item.cmtask_id);
//this.$router.push('/forward?to='+studentPath+'/pathdetails&params='+params);