Browse Source

fix: hx-op路由调整

main
xuziqiang 5 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' }, redirect: { name: 'homeIndex' },
children: [ children: [
{ {
path: 'homeModule', path: 'index',
name: 'HomeModule', name: 'homeIndex',
meta: { title: '首页', hideChildren: true, icon: 'dicizhishou' }, component: () => import('/@/view/developing.vue'),
component: Base, meta: {
redirect: { name: 'homeIndex' }, title: '首页',
children: [ 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 Base = () => import('/nerv-lib/saas/view/system/layout/content.vue');
const organizationManage = { const organizationManage = {
path: '/organizationManage', path: '/organizationManage',
name: 'organizationManage', name: 'EnterpriseManage',
meta: { title: '企业管理', icon: 'dicizhishou', index: 99, hideChildren: true }, meta: { title: '企业管理', icon: 'dicizhishou', index: 99, hideChildren: true },
redirect: { name: 'EnterpriseManage' }, redirect: { name: 'EnterpriseManageIndex' },
children: [ children: [
{ {
path: 'enterpriseManage', path: 'index',
name: 'EnterpriseManage', name: 'EnterpriseManageIndex',
meta: { title: '企业管理', hideChildren: true, icon: 'dicizhishou' }, component: () => import('/@/view/organizationManage/enterpriseManage/index.vue'),
component: Base, meta: {
redirect: { name: 'EnterpriseManageIndex' }, title: '企业管理',
children: [ 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-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