@tarojs/runtime 4.1.10-beta.0 → 4.1.10-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4141,6 +4141,7 @@ function createPageConfig(component, pageName, data, pageConfig) {
4141
4141
  return EventChannel.pageChannel;
4142
4142
  };
4143
4143
  }
4144
+ const isSWAN = process.env.TARO_ENV === 'swan'; // 百度小程序
4144
4145
  LIFECYCLES.forEach((lifecycle) => {
4145
4146
  let isDefer = false;
4146
4147
  let isEvent = false;
@@ -4163,6 +4164,9 @@ function createPageConfig(component, pageName, data, pageConfig) {
4163
4164
  else {
4164
4165
  config[lifecycle] = function () {
4165
4166
  const exec = () => safeExecute(this.$taroPath, lifecycle, ...arguments);
4167
+ if (isSWAN) {
4168
+ return exec();
4169
+ }
4166
4170
  if (isDefer) {
4167
4171
  hasLoaded.then(exec);
4168
4172
  }