af-mobile-client-vue3 1.5.101 → 1.5.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.5.101",
4
+ "version": "1.5.102",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -243,7 +243,14 @@ function handleSubmit() {
243
243
  }
244
244
  })
245
245
  .catch((e) => {
246
- showFailToast(e.message || '用户名或密码错误')
246
+ console.error(e)
247
+ // 优先使用响应数据中的 msg 字段,其次使用 Error/AxiosError 的 message
248
+ const errorMsg = e?.msg || e?.message || '用户名或密码错误'
249
+ showFailToast(errorMsg)
250
+ // 登录失败后刷新验证码
251
+ if (captchaStore.show) {
252
+ captchaStore.fetchCaptcha()
253
+ }
247
254
  })
248
255
  }
249
256