mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
加一个是否已删除的值
This commit is contained in:
@@ -98,6 +98,7 @@
|
|||||||
if(!data.contentId){
|
if(!data.contentId){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$router.push({ path: '/course/detail?id=', query: { id: data.contentId } });
|
this.$router.push({ path: '/course/detail?id=', query: { id: data.contentId } });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -230,6 +230,7 @@
|
|||||||
const noReapetIds = [...new Set(ids)];
|
const noReapetIds = [...new Set(ids)];
|
||||||
res.result.list.forEach(item=>{
|
res.result.list.forEach(item=>{
|
||||||
item.info = {};
|
item.info = {};
|
||||||
|
item.deleted=false;
|
||||||
item.authorInfo = {
|
item.authorInfo = {
|
||||||
aid: "",
|
aid: "",
|
||||||
name: "",
|
name: "",
|
||||||
@@ -502,6 +503,7 @@
|
|||||||
res.result.some(con => {
|
res.result.some(con => {
|
||||||
if (con.courseId == item.contentId) {
|
if (con.courseId == item.contentId) {
|
||||||
item.info = con;
|
item.info = con;
|
||||||
|
item.deleted=con.deleted;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user