mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-19 07:46:43 +08:00
修改动态显示内容已删除的提示
This commit is contained in:
@@ -78,6 +78,10 @@
|
||||
},
|
||||
methods:{
|
||||
jumpDetail(item){
|
||||
if(item.info.deleted){
|
||||
this.$message.warning("此文章已删除");
|
||||
return;
|
||||
}
|
||||
this.$router.push('/article/detail?id='+item.contentId)
|
||||
},
|
||||
emitHide(id) {
|
||||
|
||||
@@ -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 } });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
</el-tooltip>
|
||||
<span class="interact-bar-value"> {{data.shares}}</span>
|
||||
</div>
|
||||
<div v-if="views" style="cursor: default;" :style="`min-width: ${nodeWidth};`" class="interact-bar-btn" :class="{cursor:!readonly}">
|
||||
<div v-if="views" style="cursor: default;" :style="`min-width: ${nodeWidth};margin-left:${data.views>1000? '40px':'20px'}`" class="interact-bar-btn" :class="{cursor:!readonly}">
|
||||
<el-tooltip effect="light" content="浏览量" placement="top" :visible-arrow="false" popper-class="text-tooltip">
|
||||
<svg-icon style="margin-right: 0;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>
|
||||
</el-tooltip>
|
||||
|
||||
Reference in New Issue
Block a user