提交 31af7f08 编写于 作者: guofeng.chen's avatar guofeng.chen

医生信息没有不显示

上级 e510e4f6
<template>
<div class="course-harvest-wrapper">
<div v-if="harvest.length > 0" class="course-harvest-wrapper">
<CommonTitle title="学习收获"></CommonTitle>
<ul class="list-wrapper">
<li class="item" v-for="(item, index) in harvest" :key="index">
......
<template>
<div class="course-intro-wrapper">
<div v-if="intro" class="course-intro-wrapper">
<CommonTitle></CommonTitle>
<div class="body">
<p class="content" :class="{'ellipsis': isUp}">{{ intro }}</p>
......
<template>
<div class="course-teacher-wrapper">
<div v-if="doctorList.length > 0" class="course-teacher-wrapper">
<div class="basic-title">讲师介绍</div>
<div class="leader-info" v-for="(item,index) in doctorList" :key="index">
<img :src="item.app_image_url" alt="头像" @error="onAvatarError" />
......
......@@ -150,11 +150,11 @@ export default {
if (token && !info.id) {
this.$store.dispatch('getUserInfo');
}
// this.projectId = sessionStorage.getItem('projectId');
// if (!this.projectId) {
// this.$router.replace('/not-found');
// return;
// }
this.projectId = sessionStorage.getItem('projectId');
if (!this.projectId) {
this.$router.replace('/not-found');
return;
}
this.getCourseInfo();
this.getCourseQas();
const { height } = this.$el.querySelector('.video-box').getBoundingClientRect();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册