Browse Source

fix: hx-op路由调整

main
xuziqiang 3 months ago
parent
commit
b2a200486f
  1. 9
      hx-op/src/router/home.ts
  2. 11
      hx-op/src/router/organizationManage.ts
  3. 31
      hx-op/src/theme/global.less

9
hx-op/src/router/home.ts

@ -6,13 +6,6 @@ const home = {
redirect: { name: 'homeIndex' }, redirect: { name: 'homeIndex' },
children: [ children: [
{ {
path: 'homeModule',
name: 'HomeModule',
meta: { title: '首页', hideChildren: true, icon: 'dicizhishou' },
component: Base,
redirect: { name: 'homeIndex' },
children: [
{
path: 'index', path: 'index',
name: 'homeIndex', name: 'homeIndex',
component: () => import('/@/view/developing.vue'), component: () => import('/@/view/developing.vue'),
@ -23,7 +16,5 @@ const home = {
}, },
}, },
], ],
},
],
}; };
export default home; export default home;

11
hx-op/src/router/organizationManage.ts

@ -1,15 +1,8 @@
const Base = () => import('/nerv-lib/saas/view/system/layout/content.vue'); const Base = () => import('/nerv-lib/saas/view/system/layout/content.vue');
const organizationManage = { const organizationManage = {
path: '/organizationManage', path: '/organizationManage',
name: 'organizationManage',
meta: { title: '企业管理', icon: 'dicizhishou', index: 99, hideChildren: true },
redirect: { name: 'EnterpriseManage' },
children: [
{
path: 'enterpriseManage',
name: 'EnterpriseManage', name: 'EnterpriseManage',
meta: { title: '企业管理', hideChildren: true, icon: 'dicizhishou' }, meta: { title: '企业管理', icon: 'dicizhishou', index: 99, hideChildren: true },
component: Base,
redirect: { name: 'EnterpriseManageIndex' }, redirect: { name: 'EnterpriseManageIndex' },
children: [ children: [
{ {
@ -23,7 +16,5 @@ const organizationManage = {
}, },
}, },
], ],
},
],
}; };
export default organizationManage; export default organizationManage;

31
hx-op/src/theme/global.less

@ -14,7 +14,8 @@
.ant-menu-inline .ant-menu-item, .ant-menu-inline .ant-menu-item,
.ant-menu-inline .ant-menu-submenu-title { .ant-menu-inline .ant-menu-submenu-title {
width: 100% !important; max-width: 100% !important;
transition: none !important;
} }
.ns-basic-table .ant-btn:hover { .ns-basic-table .ant-btn:hover {
@ -46,17 +47,17 @@
} }
// header菜单字体样式 // header菜单字体样式
.ant-menu-dark.ant-menu-horizontal>.ant-menu-item, // .ant-menu-dark.ant-menu-horizontal>.ant-menu-item,
.ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu { // .ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu {
color: #fff; // color: #fff;
} // }
.ant-menu-dark .ant-menu-item, // .ant-menu-dark .ant-menu-item,
.ant-menu-dark .ant-menu-item-group-title, // .ant-menu-dark .ant-menu-item-group-title,
.ant-menu-dark .ant-menu-item>a, // .ant-menu-dark .ant-menu-item>a,
.ant-menu-dark .ant-menu-item>span>a { // .ant-menu-dark .ant-menu-item>span>a {
color: #fff; // color: #fff;
} // }
@font-face { @font-face {
/*给字体命名*/ /*给字体命名*/
@ -111,13 +112,13 @@
.ant-menu-title-content { .ant-menu-title-content {
svg { svg {
color: #A1ABC2; // color: #A1ABC2;
} }
} }
.ant-menu-item-selected { .ant-menu-item-selected {
svg { svg {
color: #D0DBF5; // color: #D0DBF5;
} }
} }
@ -181,3 +182,7 @@
background-color: #AEAEAE; background-color: #AEAEAE;
} }
} }
#app {
min-width: 1200px;
}

Loading…
Cancel
Save