ts-glitter 21.6.5 → 21.6.6

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/lowcode/Entry.js CHANGED
@@ -146,7 +146,7 @@ export class Entry {
146
146
  }
147
147
  window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
148
148
  console.log(`Entry-time:`, window.renderClock.stop());
149
- glitter.share.editerVersion = 'V_21.6.5';
149
+ glitter.share.editerVersion = 'V_21.6.6';
150
150
  glitter.share.start = new Date();
151
151
  const vm = { appConfig: [] };
152
152
  window.saasConfig = {
package/lowcode/Entry.ts CHANGED
@@ -150,7 +150,7 @@ export class Entry {
150
150
  }
151
151
  (window as any).renderClock = (window as any).renderClock ?? createClock();
152
152
  console.log(`Entry-time:`, (window as any).renderClock.stop());
153
- glitter.share.editerVersion = 'V_21.6.5';
153
+ glitter.share.editerVersion = 'V_21.6.6';
154
154
  glitter.share.start = new Date();
155
155
  const vm = { appConfig: [] };
156
156
  (window as any).saasConfig = {
@@ -346,7 +346,7 @@ export class AccountInfo {
346
346
  };
347
347
  }),
348
348
  ` <div style="height:${glitter.share.bottom_inset || 0}px;"></div>`,
349
- ];
349
+ ].join('');
350
350
  }
351
351
  }
352
352
  window.glitter.setModule(import.meta.url, AccountInfo);
@@ -366,7 +366,7 @@ export class AccountInfo {
366
366
  };
367
367
  }),
368
368
  ` <div style="height:${glitter.share.bottom_inset || 0}px;"></div>`,
369
- ];
369
+ ].join('');
370
370
  }
371
371
  }
372
372
 
@@ -139,7 +139,9 @@ export class UMReceive {
139
139
  const classPrefix = 'cart-prefix';
140
140
  CartModule.addStyle(gvc, classPrefix);
141
141
  Promise.all([ApiUser.getUserData(GlobalUser.token, 'me'), this.funnyQuickFormFrame(classPrefix)]).then(dataArray => {
142
+ var _a;
142
143
  vm.userData = dataArray[0].response.userData;
144
+ vm.userData.receive_list = (_a = vm.userData.receive_list) !== null && _a !== void 0 ? _a : [];
143
145
  if (vm.userData.receive_list) {
144
146
  vm.dataList = [...vm.userData.receive_list, ...new Array(3 - vm.userData.receive_list.length).fill({})];
145
147
  }
@@ -104,7 +104,6 @@ export class UMReceive {
104
104
  .filter((data: any) => {
105
105
  return Object.values(data).some(Boolean);
106
106
  });
107
-
108
107
  ApiUser.updateUserData({
109
108
  userData: vm.userData,
110
109
  }).then(res => {
@@ -141,7 +140,7 @@ export class UMReceive {
141
140
  dataArray => {
142
141
  // dataArray[0] => userData
143
142
  vm.userData = dataArray[0].response.userData;
144
-
143
+ vm.userData.receive_list=vm.userData.receive_list ?? []
145
144
  if (vm.userData.receive_list) {
146
145
  vm.dataList = [...vm.userData.receive_list, ...new Array(3 - vm.userData.receive_list.length).fill({})];
147
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "21.6.5",
3
+ "version": "21.6.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {