@titaui/pc 1.7.42 → 1.7.43
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/lib/components/weekly-report/index.js +9 -15
- package/package.json +1 -1
- package/yarn-error.log +15894 -0
|
@@ -156,23 +156,17 @@ function WeeklyReportModal(_ref4) {
|
|
|
156
156
|
var _useState5 = (0, _react.useState)(),
|
|
157
157
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
158
158
|
data = _useState6[0],
|
|
159
|
-
setData = _useState6[1];
|
|
159
|
+
setData = _useState6[1]; // useEffect(() => {
|
|
160
|
+
// window?.Talent?.app.vent.off('open-weekly-report-modal')
|
|
161
|
+
// window?.Talent?.app.vent.on('open-weekly-report-modal',(redisKey)=>{
|
|
162
|
+
// if(visible) return;
|
|
163
|
+
// setRedisKey(redisKey)
|
|
164
|
+
// setVisible(true)
|
|
165
|
+
// })
|
|
166
|
+
// return () => window?.Talent?.app.vent.off('open-weekly-report-modal')
|
|
167
|
+
// }, [visible])
|
|
160
168
|
|
|
161
|
-
(0, _react.useEffect)(function () {
|
|
162
|
-
var _window, _window$Talent, _window2, _window2$Talent;
|
|
163
|
-
|
|
164
|
-
(_window = window) === null || _window === void 0 ? void 0 : (_window$Talent = _window.Talent) === null || _window$Talent === void 0 ? void 0 : _window$Talent.app.vent.off('open-weekly-report-modal');
|
|
165
|
-
(_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$Talent = _window2.Talent) === null || _window2$Talent === void 0 ? void 0 : _window2$Talent.app.vent.on('open-weekly-report-modal', function (redisKey) {
|
|
166
|
-
if (visible) return;
|
|
167
|
-
setRedisKey(redisKey);
|
|
168
|
-
setVisible(true);
|
|
169
|
-
});
|
|
170
|
-
return function () {
|
|
171
|
-
var _window3, _window3$Talent;
|
|
172
169
|
|
|
173
|
-
return (_window3 = window) === null || _window3 === void 0 ? void 0 : (_window3$Talent = _window3.Talent) === null || _window3$Talent === void 0 ? void 0 : _window3$Talent.app.vent.off('open-weekly-report-modal');
|
|
174
|
-
};
|
|
175
|
-
}, [visible]);
|
|
176
170
|
(0, _react.useEffect)(function () {
|
|
177
171
|
if (!visible) return;
|
|
178
172
|
var current = new Date();
|