@titaui/pc 1.7.16 → 1.7.17
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/drop-selector/index.js +1 -0
- package/lib/components/nav-top/components/user-own-menu/utils.js +1 -1
- package/lib/components/nav-top/index.js +2 -2
- package/lib/components/user-selector/index.js +1 -1
- package/package.json +1 -1
- package/src/components/drop-selector/index.js +1 -0
- package/src/components/nav-top/components/user-own-menu/utils.ts +1 -3
- package/src/components/nav-top/index.tsx +2 -2
- package/src/components/user-selector/index.js +1 -1
|
@@ -38,7 +38,7 @@ var getOwnSet = function getOwnSet() {
|
|
|
38
38
|
id: "role",
|
|
39
39
|
url: "tu-icon-gongsi",
|
|
40
40
|
title: "企业管理规定",
|
|
41
|
-
objUrl: "".concat(apiServer, "/u/").concat(userId, "/Home
|
|
41
|
+
objUrl: "".concat(apiServer, "/u/").concat(userId, "/Home#/enterprise/manage")
|
|
42
42
|
}];
|
|
43
43
|
var exit = [{
|
|
44
44
|
id: "Logout",
|
|
@@ -108,11 +108,11 @@ var NavTop = function NavTop() {
|
|
|
108
108
|
}, []);
|
|
109
109
|
|
|
110
110
|
var handleHashChange = function handleHashChange() {
|
|
111
|
-
var hash = location.hash || "";
|
|
111
|
+
var hash = location.hash.split('?')[0] || "";
|
|
112
112
|
|
|
113
113
|
if (hash) {
|
|
114
114
|
var activeMenu = menu.find(function (item) {
|
|
115
|
-
return hash.includes(item.href.split("#")[1]);
|
|
115
|
+
return hash.includes(item.href.split("#")[1].split('?')[0]);
|
|
116
116
|
});
|
|
117
117
|
|
|
118
118
|
if (hash.includes('homepage')) {
|
|
@@ -17,7 +17,7 @@ var _singleSelector = _interopRequireDefault(require("./export-modules/single-se
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
20
|
-
_fieldTreeSelector["default"].
|
|
20
|
+
_fieldTreeSelector["default"].Single = _singleSelector["default"];
|
|
21
21
|
_fieldTreeSelector["default"].Group = _groupSelector["default"];
|
|
22
22
|
_fieldTreeSelector["default"].Depart = _departSearchSelector["default"];
|
|
23
23
|
_fieldTreeSelector["default"].Duties = _dutiesSelector["default"];
|
package/package.json
CHANGED
|
@@ -40,9 +40,7 @@ export const getOwnSet = () => {
|
|
|
40
40
|
id: "role",
|
|
41
41
|
url: "tu-icon-gongsi",
|
|
42
42
|
title: "企业管理规定",
|
|
43
|
-
objUrl: `${apiServer}/u/${userId}/Home
|
|
44
|
-
isTestCompanyManageRule ? "15709" : "12437"
|
|
45
|
-
}`,
|
|
43
|
+
objUrl: `${apiServer}/u/${userId}/Home#/enterprise/manage`,
|
|
46
44
|
},
|
|
47
45
|
];
|
|
48
46
|
|
|
@@ -62,10 +62,10 @@ const NavTop: FC = () => {
|
|
|
62
62
|
}, []);
|
|
63
63
|
|
|
64
64
|
const handleHashChange = () => {
|
|
65
|
-
const hash = location.hash || "";
|
|
65
|
+
const hash = location.hash.split('?')[0] || "";
|
|
66
66
|
if (hash) {
|
|
67
67
|
const activeMenu = menu.find((item) =>
|
|
68
|
-
hash.includes(item.href.split("#")[1])
|
|
68
|
+
hash.includes(item.href.split("#")[1].split('?')[0])
|
|
69
69
|
);
|
|
70
70
|
if (hash.includes('homepage')) {
|
|
71
71
|
setActiveMenuId(99999);
|
|
@@ -6,7 +6,7 @@ import SingleSelectorCmp from './export-modules/single-selector';
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
FieldPersonSelectorComp.
|
|
9
|
+
FieldPersonSelectorComp.Single = SingleSelectorCmp
|
|
10
10
|
FieldPersonSelectorComp.Group = GroupSelectorComp
|
|
11
11
|
FieldPersonSelectorComp.Depart = DepartSearchSelectorComp
|
|
12
12
|
FieldPersonSelectorComp.Duties = DutiesSelectorComp
|