refactor(api): 将SmsSendResponse中的message字段更名为errMsg

为了保持命名一致性,将SmsSendResponse接口中的message字段更名为errMsg,并在相关页面中更新引用。
This commit is contained in:
dzq 2025-04-29 16:43:03 +08:00
parent 76f59685bd
commit a4c709143f
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ export interface SmsSendResponse {
/** 发送状态 */
success: boolean
/** 错误信息 */
message?: string
errMsg?: string
}
/** 登录数据 */

View File

@ -87,7 +87,7 @@ const sendSms = async () => {
startCountdown()
showSuccessToast('验证码已发送')
} else {
showFailToast(data.message || '发送失败')
showFailToast(data.errMsg || '发送失败')
}
} catch (err) {
showFailToast('请求异常,请稍后重试')