Browse Source

fix: hx-op路由调整

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

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

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

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

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

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

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

Loading…
Cancel
Save