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 => {
Taro.showToast({
title: res_data && res_data.msg ? res_data.msg : '请求失败',
icon: 'none',
duration: 2000
duration: 3000
})
return res_data || { code: 0, data: null, msg: '请求失败' }
})
......@@ -70,7 +70,7 @@ export const uploadFn = api => {
Taro.showToast({
title: res.data.msg,
icon: 'none',
duration: 2000
duration: 3000
})
return false
})
......