* zin: support to handle 302 on fetch content.

This commit is contained in:
sunhao
2023-09-13 15:52:16 +08:00
parent 7086fedd6a
commit ffd1c7c016
+7 -1
View File
@@ -338,8 +338,14 @@
if(isDebugRequest) return;
toggleLoading(target, true);
},
success: (data) =>
success(data)
{
const response = this.response;
if(response && response.redirected && currentCode !== $.apps.getAppCode(response.url))
{
$.apps.openApp(response.url);
return;
}
updatePerfInfo(options, 'requestEnd', {dataSize: data.length});
options.result = 'success';
let hasFatal = false;