Skip to content

Commit

Permalink
fix: Aliyun login failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed Feb 14, 2024
1 parent 0686699 commit 15d2643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/window/Config/pages/Backup/utils/aliyun.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export async function userInfo(token) {
});
if (res.ok) {
const result = res.data;
if (result.hasOwnProperty('avatar') && resultresult.hasOwnProperty('name')) {
if (result.hasOwnProperty('avatar') && result.hasOwnProperty('name')) {
return { avatar: result['avatar'], name: result['name'] };
} else {
throw new Error(`Can not find avatar or name: ${JSON.stringify(result)}`);
Expand Down

0 comments on commit 15d2643

Please sign in to comment.