Showing
1 changed file
with
6 additions
and
0 deletions
| ... | @@ -121,6 +121,12 @@ const handleGeneratePoster = (item) => { | ... | @@ -121,6 +121,12 @@ const handleGeneratePoster = (item) => { |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | const handleCollectCoins = async () => { | 123 | const handleCollectCoins = async () => { |
| 124 | + if (activities.value.length === 0) { | ||
| 125 | + showToast({ | ||
| 126 | + message: '暂无活动可收集', | ||
| 127 | + }) | ||
| 128 | + return | ||
| 129 | + } | ||
| 124 | // 从缓存获取用户信息 | 130 | // 从缓存获取用户信息 |
| 125 | const cachedUserInfo = localStorage.getItem('cached_user_info') | 131 | const cachedUserInfo = localStorage.getItem('cached_user_info') |
| 126 | if (cachedUserInfo) { | 132 | if (cachedUserInfo) { | ... | ... |
-
Please register or login to post a comment