hookehuyr

fix(api): 延长错误提示显示时间至3秒

- 将 API 统一错误提示的 duration 从 2000ms 延长到 3000ms
- 影响所有使用 fn() 包装的 API 错误提示
- 修复用户反馈的"提示窗口关闭太快"问题

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
...@@ -32,7 +32,7 @@ export const fn = api => { ...@@ -32,7 +32,7 @@ export const fn = api => {
32 Taro.showToast({ 32 Taro.showToast({
33 title: res_data && res_data.msg ? res_data.msg : '请求失败', 33 title: res_data && res_data.msg ? res_data.msg : '请求失败',
34 icon: 'none', 34 icon: 'none',
35 - duration: 2000 35 + duration: 3000
36 }) 36 })
37 return res_data || { code: 0, data: null, msg: '请求失败' } 37 return res_data || { code: 0, data: null, msg: '请求失败' }
38 }) 38 })
...@@ -70,7 +70,7 @@ export const uploadFn = api => { ...@@ -70,7 +70,7 @@ export const uploadFn = api => {
70 Taro.showToast({ 70 Taro.showToast({
71 title: res.data.msg, 71 title: res.data.msg,
72 icon: 'none', 72 icon: 'none',
73 - duration: 2000 73 + duration: 3000
74 }) 74 })
75 return false 75 return false
76 }) 76 })
......