@tmsfe/tms-core 0.0.41 → 0.0.42
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/package.json +1 -1
- package/src/report/helper.ts +4 -1
- package/src/report/types.ts +2 -1
package/package.json
CHANGED
package/src/report/helper.ts
CHANGED
|
@@ -47,7 +47,7 @@ function getSystemInfo(): ISystemInfo {
|
|
|
47
47
|
if (systemInfo === null) {
|
|
48
48
|
const system = syncApi.getSystemInfoSync() as any;
|
|
49
49
|
// eslint-disable-next-line
|
|
50
|
-
const { model = '', version: wxVersion = '', platform = '', SDKVersion = '', host
|
|
50
|
+
const { model = '', version: wxVersion = '', platform = '', SDKVersion = '', host } = system;
|
|
51
51
|
systemInfo = { model, wxVersion, platform, SDKVersion, host };
|
|
52
52
|
}
|
|
53
53
|
return systemInfo;
|
|
@@ -70,6 +70,9 @@ function getSystemInfoString(): string {
|
|
|
70
70
|
* @param value
|
|
71
71
|
*/
|
|
72
72
|
function convert2String(value: any): string {
|
|
73
|
+
if (value === null || value === undefined) {
|
|
74
|
+
return '';
|
|
75
|
+
}
|
|
73
76
|
const type = typeof value;
|
|
74
77
|
if (type === 'string') {
|
|
75
78
|
return value;
|