@titaui/pc 1.12.94 → 1.12.95

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.
@@ -121,7 +121,7 @@ var summaryMenus = /*#__PURE__*/function () {
121
121
  key: PAGE_SUMMARY_DASHBOARD,
122
122
  type: _index.MENU_ITEM_NOE,
123
123
  href: '#/summary/dashboard',
124
- isShow: props.isShowDept
124
+ isShow: props.isShowDashboard
125
125
  }];
126
126
  }
127
127
 
@@ -80,6 +80,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
80
80
  setIsShowShare = _useState8[1];
81
81
 
82
82
  var isShowDepartment = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isDepartmentLeader() || baseAuth.isHrbp();
83
+ var isShowDashboard = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isHrbp();
83
84
  var flipRef = (0, _react.useRef)({
84
85
  next: function next() {},
85
86
  goback: function goback() {}
@@ -206,11 +207,12 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
206
207
  (0, _react.useEffect)(function () {
207
208
  var newMenu = new _menus["default"]({
208
209
  isShowShare: isShowShare,
209
- isShowDept: isShowDepartment
210
+ isShowDept: isShowDepartment,
211
+ isShowDashboard: isShowDashboard
210
212
  });
211
213
  summaryMenusData.current = newMenu;
212
214
  setMenus(newMenu.getMenus());
213
- }, [isShowShare, isShowDepartment]);
215
+ }, [isShowShare, isShowDepartment, isShowDashboard]);
214
216
  (0, _react.useEffect)(function () {
215
217
  (0, _requestApi.getShareStatus)().then(function (resp) {
216
218
  if (resp.Code === 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.12.94",
3
+ "version": "1.12.95",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",