Commit 0ec91df8 authored by liujiangnan's avatar liujiangnan

feat

parent ab5b51a6
...@@ -810,12 +810,12 @@ export default class NewClass extends middleLayerBase { ...@@ -810,12 +810,12 @@ export default class NewClass extends middleLayerBase {
// 重写reloadBundle方法 // 重写reloadBundle方法
reloadBundle() { reloadBundle() {
if (this.IS_BUNDLE_LOADING) {
return;
}
this.IS_BUNDLE_LOADING = true;
const { sceneName, version, bondleUrl } = this.currentBundleInfo; const { sceneName, version, bondleUrl } = this.currentBundleInfo;
if (bondleUrl) { if (bondleUrl) {
if (this.IS_BUNDLE_LOADING) {
return;
}
this.IS_BUNDLE_LOADING = true;
this.loadBundle(sceneName, version, bondleUrl); this.loadBundle(sceneName, version, bondleUrl);
} else { } else {
this.loadOnlineBundle(sceneName); this.loadOnlineBundle(sceneName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment