* zin: fix ajax action response not work on global link click.

This commit is contained in:
sunhao
2023-10-11 11:34:46 +08:00
parent 02082fd811
commit 36c3f084f2
+1 -1
View File
@@ -380,9 +380,9 @@
hasFatal = data.includes('Fatal error') || data.includes('Uncaught TypeError:');
data = [{name: hasFatal ? 'fatal' : 'html', data: data}];
}
if(!options.partial && !hasFatal) currentAppUrl = url;
if(Array.isArray(data))
{
if(!options.partial && !hasFatal) currentAppUrl = url;
data.forEach((item, idx) => item.selector = selectors[idx]);
updatePerfInfo(options, 'renderBegin');
renderPage(data, options);