@titaui/pc 1.9.142 → 1.9.143

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.
@@ -190,6 +190,13 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
190
190
  }
191
191
 
192
192
  localStorage.setItem("isSubmitted", "1");
193
+ var trickerContent = _constant.trackerInfo[type];
194
+
195
+ if (window.titaTracker) {
196
+ window.titaTracker("action").record(_objectSpread({
197
+ actionName: "申请演示__提交"
198
+ }, trickerContent));
199
+ }
193
200
  } else {
194
201
  setErrMsg(res.data.Message);
195
202
 
@@ -210,14 +217,7 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
210
217
  canClose: false
211
218
  });
212
219
  })["finally"](function () {
213
- var content = _constant.trackerInfo[type];
214
220
  setIsLoading(false);
215
-
216
- if (window.titaTracker) {
217
- window.titaTracker("action").record(_objectSpread({
218
- actionName: "申请演示__提交"
219
- }, content));
220
- }
221
221
  });
222
222
  };
223
223
 
@@ -302,6 +302,15 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
302
302
  multiSelect: item.multiSelect
303
303
  };
304
304
  }));
305
+ var trickerContent = _constant.trackerInfo[type];
306
+
307
+ if (window.titaTracker) {
308
+ window.titaTracker("action").record({
309
+ actionName: "申请演示__弹层",
310
+ actionGroup: "弹出申请演示",
311
+ productName: "\u7533\u8BF7\u6F14\u793A-".concat(trickerContent.actionGroup, "-").concat(trickerContent.productName)
312
+ });
313
+ }
305
314
  }, []);
306
315
  return /*#__PURE__*/_react["default"].createElement("div", {
307
316
  className: preCls
@@ -136,7 +136,7 @@ var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
136
136
  onClose: handleCloseBookDemo,
137
137
  noFooter: true,
138
138
  noCloseIcon: true,
139
- destroyOnClose: false,
139
+ destroyOnClose: true,
140
140
  style: {
141
141
  width: "742px",
142
142
  borderRadius: "24px"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.142",
3
+ "version": "1.9.143",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",