Skip to content

Commit

Permalink
feature/2024-01-26-update-profile-form-page: fix link url of update a…
Browse files Browse the repository at this point in the history
…vatar button
  • Loading branch information
cw1997 committed Jan 26, 2024
1 parent b41d521 commit 1dcf8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/my/profile/form/Form.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const FormComponent = () => {
<AntForm.Item label="头像">
<Styled.Avatar src={data.avatar_url} />
</AntForm.Item>
<Anchor href={`https://asktug.com/u/${window.encodeURIComponent(username.value)}/preferences/account`}>
<Anchor href={`https://asktug.com/u/${window.encodeURIComponent(data.username)}/preferences/account`}>
<Button>更换头像</Button>
</Anchor>
</Space>
Expand Down

0 comments on commit 1dcf8e5

Please sign in to comment.