Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
22fd1741
authored
Apr 30, 2026
by
Calcium-Ion
Committed by
GitHub
Apr 30, 2026
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4551 from SHLE1/fix/email-bind-post-method
bug fix: 新版前端email绑定错误
parents
95648353
9b0ec8ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
web/default/src/features/auth/api.ts
+3
-2
web/default/src/features/profile/api.ts
+4
-1
No files found.
web/default/src/features/auth/api.ts
View file @
22fd1741
...
...
@@ -109,8 +109,9 @@ export async function bindEmail(
email
:
string
,
code
:
string
):
Promise
<
ApiResponse
>
{
const
res
=
await
api
.
get
(
'/api/oauth/email/bind'
,
{
params
:
{
email
,
code
},
const
res
=
await
api
.
post
(
'/api/oauth/email/bind'
,
{
email
,
code
,
})
return
res
.
data
}
web/default/src/features/profile/api.ts
View file @
22fd1741
...
...
@@ -85,7 +85,10 @@ export async function bindEmail(
email
:
string
,
code
:
string
):
Promise
<
ApiResponse
>
{
const
res
=
await
api
.
get
(
`/api/oauth/email/bind?email=
${
email
}
&code=
${
code
}
`
)
const
res
=
await
api
.
post
(
'/api/oauth/email/bind'
,
{
email
,
code
,
})
return
res
.
data
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment