Skip to content

Commit

Permalink
fix(taro): 为 Taro 加上 env 属性,fix #7392
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Oct 21, 2020
1 parent 6a17ca4 commit 1c9551c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/taro/apis/alipay.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,4 +459,5 @@ export default function initNativeApi (taro) {
taro.getApp = getApp
taro.initPxTransform = initPxTransform.bind(taro)
taro.pxTransform = pxTransform.bind(taro)
taro.env = my.env
}
1 change: 1 addition & 0 deletions packages/taro/apis/jd.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,6 @@ export default function initNativeApi (taro) {
taro.initPxTransform = initPxTransform.bind(taro)
taro.pxTransform = pxTransform.bind(taro)
taro.canIUseWebp = canIUseWebp
taro.env = jd.env
jdCloud(taro)
}
1 change: 1 addition & 0 deletions packages/taro/apis/qq.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,6 @@ export default function initNativeApi (taro) {
taro.initPxTransform = initPxTransform.bind(taro)
taro.pxTransform = pxTransform.bind(taro)
taro.canIUseWebp = canIUseWebp
taro.env = qq.env
qqCloud(taro)
}
1 change: 1 addition & 0 deletions packages/taro/apis/swan.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,5 @@ export default function initNativeApi (taro) {
taro.getApp = getApp
taro.initPxTransform = initPxTransform.bind(taro)
taro.pxTransform = pxTransform.bind(taro)
taro.env = swan.env
}
1 change: 1 addition & 0 deletions packages/taro/apis/tt.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,5 @@ export default function initNativeApi (taro) {
taro.getApp = getApp
taro.initPxTransform = initPxTransform.bind(taro)
taro.pxTransform = pxTransform.bind(taro)
taro.env = tt.env
}
1 change: 1 addition & 0 deletions packages/taro/apis/wx.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,6 @@ export default function initNativeApi (taro) {
taro.initPxTransform = initPxTransform.bind(taro)
taro.pxTransform = pxTransform.bind(taro)
taro.canIUseWebp = canIUseWebp
taro.env = wx.env
wxCloud(taro)
}

0 comments on commit 1c9551c

Please sign in to comment.