@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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 = '' } = system;
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;
@@ -30,7 +30,8 @@ interface ISystemInfo {
30
30
  wxVersion: string,
31
31
  platform: string,
32
32
  SDKVersion: string,
33
- host: object | '',
33
+ // 开发环境下为空
34
+ host: object,
34
35
  }
35
36
 
36
37
  interface ILocation {