This commit is contained in:
2021-03-10 17:47:33 +00:00
parent e4b0a6280a
commit cfadab9160
7 changed files with 122 additions and 43 deletions

View File

@@ -173,6 +173,7 @@ export default {
return;
} else {
//log unhandled api error
window.$gz.store.commit(
"logItem",
"API error: status=" +
@@ -696,8 +697,11 @@ export default {
let res = await window.$gz.api.upsert("report/render", reportDataOptions);
if (res.error) {
throw new Error(window.$gz.errorHandler.errorToString(res));
//throw new Error(res.error);
if (redirectNotPopup) {
return res;
} else {
throw new Error(window.$gz.errorHandler.errorToString(res));
}
} else {
let reportUrl = window.$gz.api.reportDownloadUrl(res.data);
if (redirectNotPopup) {