@titaui/pc 1.7.39 → 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.
@@ -60,6 +60,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
60
60
  value: function componentDidCatch(error, errorInfo) {
61
61
  var scope = new Sentry.Scope();
62
62
  scope.setTag("error-level", "P".concat(this.props.errorLevel || 0));
63
+ scope.setTag("error-type", "\u767D\u9875");
63
64
  scope.setExtra("componentStack", errorInfo.componentStack);
64
65
  var eventId = Sentry.captureException(new Error(error), scope);
65
66
  this.setState({
@@ -25,7 +25,7 @@ exports.getMenus = getMenus;
25
25
  var getLogo = function getLogo() {
26
26
  // 232637ab8a674427a1d6489329035d86_n 是老logo的路径,没法判断是否用户自定义过,所以只能这么硬核
27
27
  var tenantInfo = (0, _bsGlobal.getTenantInfo)();
28
- return tenantInfo.isNewIndex && /232637ab8a674427a1d6489329035d86_n/g.test(tenantInfo.Logo) ? _logoWhite["default"] : tenantInfo.Logo;
28
+ return tenantInfo.isNewIndex && /232637ab8a674427a1d6489329035d86_n/g.test(tenantInfo.Logo) || !tenantInfo.Logo ? _logoWhite["default"] : tenantInfo.Logo;
29
29
  };
30
30
 
31
31
  exports.getLogo = getLogo;
@@ -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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.7.39",
3
+ "version": "1.7.43",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",