refactor(home): 优化首页结构和代码
- 调整了 mine-task 和 home-recommend组件的顺序和条件 -移除了不必要的空 div 和样式
This commit is contained in:
@@ -70,12 +70,8 @@ function handleSearchClick() {
|
||||
<NewSurvey />
|
||||
|
||||
<!-- 我的问卷 部分, 当问卷不存在时,显示推荐内容 -->
|
||||
<mine-task :surveys="surveys" v-if="surveys?.length > 0" />
|
||||
<home-recommend class="home_recommend" v-else />
|
||||
<!-- 剧中展示提示语 -->
|
||||
<div style="width: 100%; margin-top: 10px; text-align: center" v-if="!surveys?.length">
|
||||
<span style="">- 最新数据及更多创新趋势请到YIP探索 - </span>
|
||||
</div>
|
||||
<mine-task v-if="surveys?.length > 0" :surveys="surveys" />
|
||||
<home-recommend v-else class="home_recommend" />
|
||||
<navigation />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user