Commit 7b011c79 authored by liujiangnan's avatar liujiangnan

test

parent ba604662
......@@ -779,7 +779,7 @@ export default class NewClass extends middleLayerBase {
}
runInnerBundle(bundleName) {
const arr = ['NJ_YouLeChang', 'NJ_login', 'NJ_menu', 'NJ_QianShuiTing'];
const arr = this.needInitPreloadPage.map(item => item.bundleName);
if (!arr.includes(bundleName)) {
return false;
}
......@@ -1295,6 +1295,15 @@ export default class NewClass extends middleLayerBase {
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("确定离开吗?", () => {
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