Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(group): (#526) 圈外搜索时如果没有帖子则引导去发帖
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Oct 9, 2018
1 parent d0419c7 commit 29043b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/page/group/GroupSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@

<p v-show="loading" class="load-more-ph m-text-c mt10">正在搜索...</p>
<template v-if="noResult &&!loading && keyword && !list.length" >
<div v-if="type === 'posts'" class="m-no-find"/>
<div v-if="type === 'posts'" class="no-groups">
<p> 未找到相关帖子~</p>
<button @click="$router.push({name: 'groupCreatePost'})">去发帖</button>
</div>
<div v-else class="no-groups">
<p> 未找到相关圈子, 创建属于自己的圈子吧</p>
<button @click="$router.push({name: 'groupCreate'})">创建圈子</button>
Expand Down

0 comments on commit 29043b3

Please sign in to comment.