refactor(WeRunAuth): 移除同步步数时的Toast提示
避免在同步步数时频繁显示Toast干扰用户,仅在必要时通过emit通知父组件
Showing
1 changed file
with
5 additions
and
5 deletions
| ... | @@ -193,11 +193,11 @@ const getWeRunData = async () => { | ... | @@ -193,11 +193,11 @@ const getWeRunData = async () => { |
| 193 | showManualUpdate.value = true; | 193 | showManualUpdate.value = true; |
| 194 | emit('sync-failed', { showManualUpdate: true }); | 194 | emit('sync-failed', { showManualUpdate: true }); |
| 195 | } | 195 | } |
| 196 | - Taro.showToast({ | 196 | + // Taro.showToast({ |
| 197 | - title: msg || '同步步数中', | 197 | + // title: msg || '同步步数中', |
| 198 | - icon: 'none', | 198 | + // icon: 'none', |
| 199 | - duration: 2000 | 199 | + // duration: 2000 |
| 200 | - }); | 200 | + // }); |
| 201 | } | 201 | } |
| 202 | } catch (apiError) { | 202 | } catch (apiError) { |
| 203 | console.error('同步微信步数API调用失败:', apiError); | 203 | console.error('同步微信步数API调用失败:', apiError); | ... | ... |
-
Please register or login to post a comment