* [misc] add afterPageRender life cycle method for zin load.

This commit is contained in:
sunhao
2024-10-16 08:36:49 +08:00
parent e8f4c10a82
commit fbf237b40f
+2 -1
View File
@@ -194,7 +194,7 @@
if(window.onPageUnmount) window.onPageUnmount();
$(document).trigger('pageunmount.app');
['beforePageLoad', 'beforeRequestContent', 'onPageUnmount', 'beforePageUpdate', 'afterPageUpdate', 'onPageRender'].forEach(key =>
['beforePageLoad', 'beforeRequestContent', 'onPageUnmount', 'beforePageUpdate', 'afterPageUpdate', 'onPageRender', 'afterPageRender'].forEach(key =>
{
if(window[key]) delete window[key];
});
@@ -488,6 +488,7 @@
updatePageLayout();
$('html').enableScroll();
}
if(window.afterPageRender) window.afterPageRender(list, options);
if(!options.partial)
{
const newState = $.apps.updateApp(currentCode, currentAppUrl, document.title);