Skip to content

Commit

Permalink
[*] 修改一个 API 调用
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Oct 16, 2024
1 parent fb5c385 commit e1f9ccb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/UserInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,8 @@ async function sendChangeEmailCode() {
ldb.start()
let rs
try {
rs = await api.v1.Account.SendEditMail(
rs = await api.v2.email.email(
userData.getters.get_username,
userData.getters.get_token,
tEmail.value.email
)
} catch (e) {
Expand All @@ -229,7 +228,7 @@ async function sendChangeEmailCode() {
ldb.error()
return
}
if (rs.status) {
if (rs.status === 200) {
message.success(rs.message)
tEmail.value.verify.msg = ref(`已发送`)
} else {
Expand Down

0 comments on commit e1f9ccb

Please sign in to comment.