@titaui/pc 1.16.38 → 1.16.39-beta.2
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.
|
@@ -47,14 +47,14 @@ var surveyMenus = /*#__PURE__*/function () {
|
|
|
47
47
|
isShow: true
|
|
48
48
|
}, {
|
|
49
49
|
icon: "",
|
|
50
|
-
label: '
|
|
50
|
+
label: (0, _getLocale.getLocale)('Per_Menu_Title_Label_BasicSettings'),
|
|
51
51
|
key: "other",
|
|
52
52
|
type: _index.GROUP_NAME_NODE,
|
|
53
|
-
href: "",
|
|
53
|
+
href: "#/",
|
|
54
54
|
isShow: props.isShowSurveyManage
|
|
55
55
|
}, {
|
|
56
56
|
icon: 'setting',
|
|
57
|
-
label: '
|
|
57
|
+
label: (0, _getLocale.getLocale)('360_set_men_revset'),
|
|
58
58
|
key: PAGE_SURVEY_ASSESS_SETTINGS,
|
|
59
59
|
type: _index.MENU_ITEM_NOE,
|
|
60
60
|
href: '#/survey/assess-settings',
|
|
@@ -95,7 +95,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
95
95
|
var firstMenuHref = menus[0].data.href;
|
|
96
96
|
if (firstMenuHref.split('#')[1] === pathname) return; //当前路由与二级菜单第一项相同时直接return
|
|
97
97
|
|
|
98
|
-
var menusHrefArr = ['/survey/manage', '/survey/my-involved'];
|
|
98
|
+
var menusHrefArr = ['/survey/manage', '/survey/my-involved', '/survey/assess-settings'];
|
|
99
99
|
var isIncludeMenu = menusHrefArr.find(function (item) {
|
|
100
100
|
//表示当前路由是否是左侧二级菜单的选项
|
|
101
101
|
return item.includes(pathname);
|
|
@@ -109,7 +109,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
109
109
|
|
|
110
110
|
if (!isShowMenuItem) {
|
|
111
111
|
//如果当前路由没有权限展示的话,则跳转到有权限二级路由的第一项
|
|
112
|
-
window.location.href =
|
|
112
|
+
window.location.href = '#/survey/my-involved';
|
|
113
113
|
}
|
|
114
114
|
}, [history.location.pathname, history.location.search]);
|
|
115
115
|
|