This commit is contained in:
zhaofang
2022-09-25 14:04:42 +08:00
parent e15c24b6d1
commit fb32fdf509
7 changed files with 29 additions and 5 deletions

View File

@@ -88,6 +88,7 @@
import apiUser from "@/api/system/user.js";
import {cutFullName} from "@/utils/tools.js";
import apiDict from "@/api/modules/dict.js";
import ItemVue from '../../layout/components/Sidebar/Item.vue'
export default{
components:{top,UcHeader,CaseList,CourseList,NoteList,PutList,AnswerList,ArticleList,FollowList,BookList},
@@ -315,6 +316,13 @@
apiNote.ids(ids).then(res=>{
if(res.status == 200) {
list.forEach((item, index) => {
let score = item.contentInfo.substr(item.contentInfo.length -1,1);
console.log(Number(score),'Number(score)');
if(Number(score) > 0) {
item.score = score;
}
res.result.some(con => {
if (con.id == item.contentId) {
item.info = con;
@@ -323,6 +331,8 @@
return false;
}
});
item.contentInfo = item.contentInfo.slice(0,item.contentInfo.length -1);
});
}
})