Skip to content

Commit

Permalink
feat: 适配百度
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczj committed Jan 30, 2019
1 parent 4f52def commit 0743caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const ENV = Taro.getEnv()

function delay (delayTime = 500): Promise<null> {
return new Promise(resolve => {
if (ENV === Taro.ENV_TYPE.WEB) {
if ([Taro.ENV_TYPE.WEB, Taro.ENV_TYPE.SWAN].includes(ENV)) {
setTimeout(() => {
resolve()
}, delayTime)
Expand Down

0 comments on commit 0743caf

Please sign in to comment.