@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.
|
@@ -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) {
|