Skip to content

Commit

Permalink
fix(script): 修复请求记录开启后无法读取内容的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Mar 13, 2024
1 parent cf2fe10 commit 31d2a85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/scripts/src/projects/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,9 @@ export const BackgroundProject = Project.create({
addRecord(data);
const res = originalFetch.apply(this, [input, init]);
res
.then((result) => result.text())
.then((result) => {
return result.clone().text();
})
.then((result) => {
setItem(id, result, '');
data.response = result;
Expand Down

0 comments on commit 31d2a85

Please sign in to comment.