Skip to content

Commit

Permalink
fix(core): 修复上个版本题库连接超时问题
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed May 25, 2023
1 parent e6493a2 commit 1c045ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/core/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function request<T extends 'json' | 'text'>(
reject(error);
}
} else {
resolve(response.responseText as any);
resolve(response.responseText || '');
}
} else {
reject(response.responseText);
Expand Down
1 change: 0 additions & 1 deletion packages/scripts/src/projects/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ export const CommonProject = Project.create({
return false;
})()
]);

if (typeof res === 'string') {
success = true;
} else {
Expand Down

2 comments on commit 1c045ef

@dill18403
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GET /q/{question}

@dill18403
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GET /q/{question}

Please sign in to comment.