Commit e4087f6b authored by liujiangnan's avatar liujiangnan

Revert "test"

This reverts commit 7b011c79.
parent 19cba6f2
...@@ -779,7 +779,7 @@ export default class NewClass extends middleLayerBase { ...@@ -779,7 +779,7 @@ export default class NewClass extends middleLayerBase {
} }
runInnerBundle(bundleName) { runInnerBundle(bundleName) {
const arr = this.needInitPreloadPage.map(item => item.bundleName); const arr = ['NJ_YouLeChang', 'NJ_login', 'NJ_menu', 'NJ_QianShuiTing'];
if (!arr.includes(bundleName)) { if (!arr.includes(bundleName)) {
return false; return false;
} }
...@@ -1297,15 +1297,6 @@ export default class NewClass extends middleLayerBase { ...@@ -1297,15 +1297,6 @@ export default class NewClass extends middleLayerBase {
this.loadOnlineBundle('NJ_MonkyTree'); this.loadOnlineBundle('NJ_MonkyTree');
} }
// TODO 测试释放资源的效果
if (this.courseItem && this.courseItem.template_name!='NJ_BookTable') {
this.courses.forEach(item => {
const bd = cc.assetManager.getBundle(item.template_name);
bd.releaseAll();
cc.assetManager.removeBundle(bd);
});
}
} }
this.showConfirm("确定离开吗?", () => { this.showConfirm("确定离开吗?", () => {
exit(); exit();
......
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