From e1f9ccbf8487dd60ef83b5f56fd0ce4ff87242b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=B2=AB=E8=8A=B1=E7=81=ABzzz=F0=9F=8C=99?= Date: Thu, 17 Oct 2024 01:18:31 +0800 Subject: [PATCH] =?UTF-8?q?[*]=20=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=AA=20AP?= =?UTF-8?q?I=20=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserInfo.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/UserInfo.vue b/src/components/UserInfo.vue index 6f3bfca..6f9e472 100644 --- a/src/components/UserInfo.vue +++ b/src/components/UserInfo.vue @@ -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) { @@ -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 {