Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-01-22 20:18:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b048b0b76b093ebc250ca3329357065866eec851
b048b0b7
1 parent
be225c21
fix(StudyCoursePage): 修复课程详情显示条件逻辑
当课程没有特色、亮点或学习目标时,才显示"暂无详情"。修复了原本逻辑中空状态和详情可能同时显示的问题
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/views/profile/StudyCoursePage.vue
src/views/profile/StudyCoursePage.vue
View file @
b048b0b
...
...
@@ -40,7 +40,7 @@
</div>
</div>
<div id="detail" class="py-4 px-4">
<div
v-if="course?.feature || course?.highlights || course?.learning_goal"
id="detail" class="py-4 px-4">
<div v-if="course?.feature">
<div class="text-black text-xl font-bold mb-2">课程特色</div>
<div class="text-gray-700 text-sm leading-relaxed" v-html="course?.feature"></div>
...
...
@@ -56,7 +56,7 @@
<div class="text-gray-700 text-sm leading-relaxed" v-html="course?.learning_goal"></div>
<br />
</div>
<van-empty v-
else
description="暂无详情" />
<van-empty v-
if="!course?.feature && !course?.highlights && !course?.learning_goal"
description="暂无详情" />
</div>
<div class="h-2 bg-gray-100"></div>
...
...
Please
register
or
login
to post a comment