Skip to content

Commit

Permalink
fix(runtime-base): 修复 qq 等端 request 不执行的问题 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
BboyZaki authored Jun 7, 2023
1 parent 89a031b commit 52fa701
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime-base/src/utils/transformApis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ export function transformApis(
}

// 处理 request
if (actualApiName === 'request') return getOriginalRequest(global)
if (actualApiName === 'request') {
return getOriginalRequest(global)(options)
}

// promisify 处理
if (needPromisfiedApis.indexOf(apiName) !== -1) {
Expand Down

0 comments on commit 52fa701

Please sign in to comment.