@titaui/pc 1.15.97 → 1.15.100
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.
|
@@ -29,6 +29,8 @@ var _context = require("../../context");
|
|
|
29
29
|
|
|
30
30
|
var _auth = require("../../../../utils/auth");
|
|
31
31
|
|
|
32
|
+
var _helpers = require("../../../../utils/helpers");
|
|
33
|
+
|
|
32
34
|
require("../../index.css");
|
|
33
35
|
|
|
34
36
|
require("./index.css");
|
|
@@ -92,7 +94,8 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
92
94
|
setIsShowTemplate = _useState12[1];
|
|
93
95
|
|
|
94
96
|
var isShowDepartment = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isDepartmentLeader() || baseAuth.isHrbp();
|
|
95
|
-
var isShowDashboard = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isDepartmentLeader() || baseAuth.isHrbp();
|
|
97
|
+
var isShowDashboard = (baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isDepartmentLeader() || baseAuth.isHrbp()) && !(0, _helpers.getTenantInfo)().isLocal; // isLocal = 本地化部署,不展示仪表盘
|
|
98
|
+
|
|
96
99
|
var flipRef = (0, _react.useRef)({
|
|
97
100
|
next: function next() {},
|
|
98
101
|
goback: function goback() {}
|
|
@@ -83,8 +83,8 @@ var getMessages = function getMessages() {
|
|
|
83
83
|
}, function (error) {
|
|
84
84
|
var _error$response;
|
|
85
85
|
|
|
86
|
-
if (error.response) {
|
|
87
|
-
switch (error.response.status) {
|
|
86
|
+
if (error !== null && error !== void 0 && error.response) {
|
|
87
|
+
switch (error === null || error === void 0 ? void 0 : error.response.status) {
|
|
88
88
|
case 401:
|
|
89
89
|
window.location.reload();
|
|
90
90
|
}
|