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:
@@ -39,11 +39,11 @@
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<div v-else class="home-no-list">
|
||||
<!-- <div v-else class="home-no-list">
|
||||
<img class="img" :src="`${webBaseUrl}/images/homeWu/no-course.png`" alt="" srcset="">
|
||||
<p v-if="isFollow" class="text">暂时没有动态</p>
|
||||
<p v-else class="text">还没有课程</p>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -98,7 +98,11 @@
|
||||
if(!data.contentId){
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(data.info,'data.info')
|
||||
if(!data.info.enabled || data.info.deleted){
|
||||
this.$message.warning("此课程已停用或已删除");
|
||||
return;
|
||||
}
|
||||
this.$router.push({ path: '/course/detail?id=', query: { id: data.contentId } });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user