* [misc] disable cache on load page after post form.

This commit is contained in:
sunhao
2024-07-19 08:45:44 +08:00
committed by 刘刚
parent e80881761a
commit df8747e11f
+3 -3
View File
@@ -975,7 +975,7 @@
if($('#docDropmenu').length) selector += ',#docDropmenu,.module-menu';
}
delete options.selector;
return loadComponent(target, $.extend({component: 'dtable', url: url, selector: selector, modal: isInModal}, options));
return loadComponent(target, $.extend({cache: isDiffPage(url), component: 'dtable', url: url, selector: selector, modal: isInModal}, options));
}
/**
@@ -1113,12 +1113,12 @@
if(DEBUG) console.warn('[APP] ', 'loadCurrentPage() should not be called with an event or element.');
}
if(typeof options === 'string') options = {selector: options};
return loadPage(options);
return loadPage($.extend({cache: false}, options));
}
function reloadPage()
{
loadPage({url: currentAppUrl, selector: 'body>*,title>*,#configJS'});
loadPage({cache: false, url: currentAppUrl, selector: 'body>*,title>*,#configJS'});
}
/**