@ibiz-template/runtime 0.7.41-alpha.122 → 0.7.41-alpha.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +7 -5
- package/dist/index.system.min.js +1 -1
- package/out/controller/utils/data-file-util/data-file-util.d.ts +11 -3
- package/out/controller/utils/data-file-util/data-file-util.d.ts.map +1 -1
- package/out/controller/utils/data-file-util/data-file-util.js +8 -6
- package/package.json +2 -2
- package/src/controller/utils/data-file-util/data-file-util.ts +20 -9
package/dist/index.esm.js
CHANGED
|
@@ -26117,7 +26117,8 @@ async function importData(file, appDataEntity, dataImport, context, params) {
|
|
|
26117
26117
|
url = resPath + url;
|
|
26118
26118
|
}
|
|
26119
26119
|
const result = {
|
|
26120
|
-
isAsync: false
|
|
26120
|
+
isAsync: false,
|
|
26121
|
+
showTitle: true
|
|
26121
26122
|
};
|
|
26122
26123
|
try {
|
|
26123
26124
|
const app = ibiz.hub.getApp(context == null ? void 0 : context.srfappid);
|
|
@@ -26134,19 +26135,20 @@ async function importData(file, appDataEntity, dataImport, context, params) {
|
|
|
26134
26135
|
);
|
|
26135
26136
|
if (res.ok && res.data) {
|
|
26136
26137
|
Object.assign(result, res.data);
|
|
26137
|
-
if (res.data
|
|
26138
|
-
result.
|
|
26138
|
+
if (res.data.errormessage || res.data.message) {
|
|
26139
|
+
result.showTitle = false;
|
|
26139
26140
|
}
|
|
26140
26141
|
if (res.data && res.data.errorinfo && !res.data.message && !res.data.errormessage) {
|
|
26141
26142
|
const errorInfos = Object.values(res.data.errorinfo);
|
|
26142
26143
|
if (errorInfos.length > 0) {
|
|
26143
|
-
result.
|
|
26144
|
+
result.errormessage = errorInfos.map((item) => item.errorInfo).join("\r\n");
|
|
26144
26145
|
}
|
|
26145
26146
|
}
|
|
26146
26147
|
}
|
|
26147
26148
|
} catch (error) {
|
|
26148
26149
|
if (error instanceof Error) {
|
|
26149
|
-
result.
|
|
26150
|
+
result.errormessage = error.message;
|
|
26151
|
+
result.showTitle = false;
|
|
26150
26152
|
}
|
|
26151
26153
|
}
|
|
26152
26154
|
return result;
|