@titaui/pc 1.9.14 → 1.9.15

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.
@@ -40,7 +40,14 @@ var Comments = function Comments(props) {
40
40
  yqmNum = _useContext.yqmNum;
41
41
 
42
42
  var openComments = function openComments() {
43
- pushRef.current && pushRef.current.show();
43
+ pushRef.current && pushRef.current.show(); // @ts-ignore
44
+
45
+ window.titaTracker && // @ts-ignore
46
+ window.titaTracker('action').record({
47
+ actionName: 'OKR__点击图标【沟通】',
48
+ actionGroup: 'OKR-沟通',
49
+ productName: 'OKR'
50
+ });
44
51
  };
45
52
 
46
53
  if (!toUserId && relation != 1) return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.14",
3
+ "version": "1.9.15",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -13,7 +13,15 @@ const Comments = (props) => {
13
13
  Context
14
14
  );
15
15
  const openComments = () => {
16
- pushRef.current && pushRef.current.show();
16
+ pushRef.current && pushRef.current.show();
17
+ // @ts-ignore
18
+ window.titaTracker &&
19
+ // @ts-ignore
20
+ window.titaTracker('action').record({
21
+ actionName: 'OKR__点击图标【沟通】',
22
+ actionGroup: 'OKR-沟通',
23
+ productName: 'OKR',
24
+ });
17
25
  };
18
26
 
19
27
  if (!toUserId && relation != 1) return null;