@titaui/pc 1.15.47-beta.20 → 1.15.47-beta.23
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.
|
@@ -901,6 +901,8 @@ var trackerInfo = (_trackerInfo = {}, _defineProperty(_trackerInfo, _interface.E
|
|
|
901
901
|
actionGroup: "系统内-绩效宝预约演示"
|
|
902
902
|
}), _defineProperty(_trackerInfo, _interface.EDemoType.UniversalBookDemo, {
|
|
903
903
|
actionGroup: "预约演示"
|
|
904
|
+
}), _defineProperty(_trackerInfo, _interface.EDemoType.OfficalSiteSurvey, {
|
|
905
|
+
actionGroup: "官网Survey-预约演示"
|
|
904
906
|
}), _trackerInfo);
|
|
905
907
|
exports.trackerInfo = trackerInfo;
|
|
906
908
|
var DemoTypeTextMap = (_DemoTypeTextMap = {}, _defineProperty(_DemoTypeTextMap, _interface.EDemoType.Learning, "learning"), _defineProperty(_DemoTypeTextMap, _interface.EDemoType.OfficalSiteOKR, "OKR官网"), _defineProperty(_DemoTypeTextMap, _interface.EDemoType.OfficalSitePerformance, "考核官网"), _defineProperty(_DemoTypeTextMap, _interface.EDemoType.TryOKR, "OKR试用版"), _defineProperty(_DemoTypeTextMap, _interface.EDemoType.TryPerformance, "绩效版"), _defineProperty(_DemoTypeTextMap, _interface.EDemoType.UniversalBookDemo, "旗舰版"), _DemoTypeTextMap);
|
|
@@ -70,8 +70,9 @@ var Menu = function Menu(_ref) {
|
|
|
70
70
|
|
|
71
71
|
var _useGlobalValue = (0, _useGlobalValue3["default"])(),
|
|
72
72
|
_useGlobalValue2 = _slicedToArray(_useGlobalValue, 1),
|
|
73
|
-
|
|
73
|
+
globalState = _useGlobalValue2[0];
|
|
74
74
|
|
|
75
|
+
var feedNum = globalState.feedNum;
|
|
75
76
|
var containerRef = (0, _react.useRef)();
|
|
76
77
|
var apiPath = (0, _bsGlobal.getBSGlobal)('apiPath');
|
|
77
78
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
@@ -84,7 +84,7 @@ function UserMessage() {
|
|
|
84
84
|
firstTab = _useState12[0],
|
|
85
85
|
setFirstTab = _useState12[1];
|
|
86
86
|
|
|
87
|
-
var
|
|
87
|
+
var setGlobalState = (0, _useGlobalValue["default"])()[1];
|
|
88
88
|
|
|
89
89
|
var handleShowInfos = function handleShowInfos() {
|
|
90
90
|
setPopupVisible(true);
|
|
@@ -191,14 +191,17 @@ function UserMessage() {
|
|
|
191
191
|
var feedInfo = indicators.find(function (item) {
|
|
192
192
|
return item.type === 'feedAboutMeIndicator';
|
|
193
193
|
});
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
194
|
+
var feedInsightIndicator = indicators.find(function (item) {
|
|
195
|
+
return item.type === 'feedInsightIndicator';
|
|
196
|
+
});
|
|
197
|
+
setGlobalState({
|
|
198
|
+
feedNum: (feedInfo === null || feedInfo === void 0 ? void 0 : feedInfo.value) || 0,
|
|
199
|
+
insightNum: (feedInsightIndicator === null || feedInsightIndicator === void 0 ? void 0 : feedInsightIndicator.value) || 0
|
|
200
|
+
});
|
|
201
|
+
window.globalState = {
|
|
202
|
+
feedNum: (feedInfo === null || feedInfo === void 0 ? void 0 : feedInfo.value) || 0,
|
|
203
|
+
insightNum: (feedInsightIndicator === null || feedInsightIndicator === void 0 ? void 0 : feedInsightIndicator.value) || 0
|
|
204
|
+
};
|
|
202
205
|
}
|
|
203
206
|
});
|
|
204
207
|
};
|
|
@@ -9,6 +9,9 @@ var _useGlobalState = _interopRequireDefault(require("../../hooks/useGlobalState
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
|
|
12
|
-
var useGlobalValue = (0, _useGlobalState["default"])(
|
|
12
|
+
var useGlobalValue = (0, _useGlobalState["default"])({
|
|
13
|
+
feedNum: 0,
|
|
14
|
+
insightNum: 0
|
|
15
|
+
});
|
|
13
16
|
var _default = useGlobalValue;
|
|
14
17
|
exports["default"] = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.15.47-beta.
|
|
3
|
+
"version": "1.15.47-beta.23",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -108,6 +108,7 @@
|
|
|
108
108
|
"lodash.throttle": "4.1.1",
|
|
109
109
|
"lottie-web": "5.7.12",
|
|
110
110
|
"moment": "2.29.1",
|
|
111
|
+
"node-sass": "^7.0.1",
|
|
111
112
|
"prosemirror-commands": "1.2.1",
|
|
112
113
|
"prosemirror-example-setup": "1.1.2",
|
|
113
114
|
"prosemirror-history": "1.2.0",
|
|
@@ -155,8 +156,8 @@
|
|
|
155
156
|
"react-spring": "9.2.4",
|
|
156
157
|
"react-transition-group": "4.4.2",
|
|
157
158
|
"resize-observer-polyfill": "1.5.1",
|
|
158
|
-
"sortablejs": "^1.12.0",
|
|
159
159
|
"slick-carousel": "1.8.1",
|
|
160
|
+
"sortablejs": "^1.12.0",
|
|
160
161
|
"tita-ui": "1.2.56",
|
|
161
162
|
"url-parse": "1.5.1",
|
|
162
163
|
"uuid": "3.1.0",
|