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
|
@@ -243,7 +243,14 @@ function handleSubmit() {
|
|
|
243
243
|
}
|
|
244
244
|
})
|
|
245
245
|
.catch((e) => {
|
|
246
|
-
|
|
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
|
|