mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-23 17:55:37 +08:00
提交
This commit is contained in:
@@ -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);
|
||||
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user