Commit cbfd97c4 authored by MrShi's avatar MrShi

dev分支,菜单config

parent 33a25dad
...@@ -62,7 +62,7 @@ export default defineConfig({ ...@@ -62,7 +62,7 @@ export default defineConfig({
authority: ['admin', 'user'], authority: ['admin', 'user'],
routes: [ routes: [
{ {
path: '/500', path: '/500',
component:'./500' component:'./500'
}, },
{ {
...@@ -100,17 +100,17 @@ export default defineConfig({ ...@@ -100,17 +100,17 @@ export default defineConfig({
routes: [ routes: [
{ path: './', component: './UserManagement/ServiceProviderManagement/Detail'}, { path: './', component: './UserManagement/ServiceProviderManagement/Detail'},
{ path: './Guard', component: './UserManagement/ServiceProviderManagement/Guard'} { path: './Guard', component: './UserManagement/ServiceProviderManagement/Guard'}
]}, ]},
{ path: './Edit', component: './UserManagement/ServiceProviderManagement/Edit' }, { path: './Edit', component: './UserManagement/ServiceProviderManagement/Edit' },
{path:'./Services',component:'./UserManagement/ServiceProviderManagement/Services'}, {path:'./Services',component:'./UserManagement/ServiceProviderManagement/Services'},
] ]
}, },
] ]
}, },
{ {
path: '/PropertyManagement', path: '/PropertyManagement',
name: 'propertymanagement', name: 'propertymanagement',
icon: 'ReconciliationOutlined', icon: 'ReconciliationOutlined',
routes: [ routes: [
{ path: './', component: './PropertyManagement/ChargeManager' }, { path: './', component: './PropertyManagement/ChargeManager' },
{ path: './AccoutingDetail', component: './PropertyManagement/AccoutingContent' }, { path: './AccoutingDetail', component: './PropertyManagement/AccoutingContent' },
...@@ -124,14 +124,14 @@ export default defineConfig({ ...@@ -124,14 +124,14 @@ export default defineConfig({
name: 'commercialservice', name: 'commercialservice',
icon:'ConsoleSqlOutlined', icon:'ConsoleSqlOutlined',
routes: [ routes: [
{ {
path: './CommunityMaintenance', path: './CommunityMaintenance',
name: 'communitymaintenance', name: 'communitymaintenance',
routes: [ routes: [
{ path: './', component: './CommercialService/PropertyServices' }, { path: './', component: './CommercialService/PropertyServices' },
{ path: './Detail', component: './CommercialService/Detail' }, { path: './Detail', component: './CommercialService/Detail' },
{path: './Edit',component:'./CommercialService/Detail'}, {path: './Edit',component:'./CommercialService/Detail'},
] ]
}, },
{ {
path: './OwnerComplaints', path: './OwnerComplaints',
...@@ -162,20 +162,20 @@ export default defineConfig({ ...@@ -162,20 +162,20 @@ export default defineConfig({
path: './ShelfLifeService', path: './ShelfLifeService',
name: 'shelflifeservice', name: 'shelflifeservice',
routes: [ routes: [
{ path: './', component: './CommercialService/PropertyServices' }, { path: './', component: './CommercialService/PropertyServices' },
{ path: './Detail', component: './CommercialService/Detail' }, { path: './Detail', component: './CommercialService/Detail' },
{path: './Edit',component:'./CommercialService/Detail'}, {path: './Edit',component:'./CommercialService/Detail'},
] ]
}, },
{path: './AccessCardApplication/Request',component:'./CommercialService/AccessCardApplication/Request'}, {path: './AccessCardApplication/Request',component:'./CommercialService/AccessCardApplication/Request'},
{path: './OwnerComplaints/Detail',component:'./CommercialService/Detail'}, {path: './OwnerComplaints/Detail',component:'./CommercialService/Detail'},
{path: './OwnerComplaints/Edit',component:'./CommercialService/Detail'}, {path: './OwnerComplaints/Edit',component:'./CommercialService/Detail'},
{path: './ProblemFeedback/Detail',component:'./CommercialService/Detail'}, {path: './ProblemFeedback/Detail',component:'./CommercialService/Detail'},
{path: './ProblemFeedback/Edit',component:'./CommercialService/Detail'}, {path: './ProblemFeedback/Edit',component:'./CommercialService/Detail'},
{path: './RenovationApplication/Detail',component:'./CommercialService/Detail'}, {path: './RenovationApplication/Detail',component:'./CommercialService/Detail'},
{path: './RenovationApplication/Edit',component:'./CommercialService/Detail'}, {path: './RenovationApplication/Edit',component:'./CommercialService/Detail'},
{path: './ReportOnline/Detail',component:'./CommercialService/Detail'}, {path: './ReportOnline/Detail',component:'./CommercialService/Detail'},
{path: './ReportOnline/Edit',component:'./CommercialService/Detail'}, {path: './ReportOnline/Edit',component:'./CommercialService/Detail'},
] ]
}, },
{ {
...@@ -192,8 +192,8 @@ export default defineConfig({ ...@@ -192,8 +192,8 @@ export default defineConfig({
icon: 'SwitcherOutlined', icon: 'SwitcherOutlined',
routes: [ routes: [
{ path: './', component: './ContractManagement/Contract' }, { path: './', component: './ContractManagement/Contract' },
{ path: './Detail', component: './ContractManagement/ContractContent' }, { path: './Detail', component: './ContractManagement/ContractContent' },
{ path: './Edit',component:'./ContractManagement/ContractContent'}, { path: './Edit',component:'./ContractManagement/ContractContent'},
] ]
}, },
{ {
...@@ -207,7 +207,7 @@ export default defineConfig({ ...@@ -207,7 +207,7 @@ export default defineConfig({
routes:[ routes:[
{ path: './', component: './CommunityManagement/CellList/CellList' }, { path: './', component: './CommunityManagement/CellList/CellList' },
{path:'./Add',component:'./CommunityManagement/CellList/Add'}, {path:'./Add',component:'./CommunityManagement/CellList/Add'},
] ]
}, },
{ {
path: './CommunityAnnouncement', path: './CommunityAnnouncement',
...@@ -221,21 +221,21 @@ export default defineConfig({ ...@@ -221,21 +221,21 @@ export default defineConfig({
path: './FacilityBookings', path: './FacilityBookings',
name: 'facilitybookings', name: 'facilitybookings',
routes: [ routes: [
{ path: "./", component: './CommunityManagement/FacilityBookings/FacilityBookings' }, { path: "./", component: './CommunityManagement/FacilityBookings/FacilityBookings' },
{ path: "./Booking", component: './CommunityManagement/FacilityBookings/Bookings' }, { path: "./Booking", component: './CommunityManagement/FacilityBookings/Bookings' },
{ path: "./Detail", component: './CommunityManagement/FacilityBookings/BookingDetail' }, { path: "./Detail", component: './CommunityManagement/FacilityBookings/BookingDetail' },
{ path: "./Adding", component: './CommunityManagement/FacilityBookings/Facility' }, { path: "./Adding", component: './CommunityManagement/FacilityBookings/Facility' },
{ path: "./FacilityEdit", component: './CommunityManagement/FacilityBookings/Facility' }, { path: "./FacilityEdit", component: './CommunityManagement/FacilityBookings/Facility' },
{ path: "./FacilityDetail", component: './CommunityManagement/FacilityBookings/Facility' }, { path: "./FacilityDetail", component: './CommunityManagement/FacilityBookings/Facility' },
{ path: "./FacilityApply",component:'./CommunityManagement/FacilityBookings/Bookings'} { path: "./FacilityApply",component:'./CommunityManagement/FacilityBookings/Bookings'}
] ]
}, },
{ {
path: './VisitorRecord', path: './VisitorRecord',
name: 'visitorrecord', name: 'visitorrecord',
routes: [ routes: [
{path:"./",component:'./CommunityManagement/VisitorRecord/VisitorRecord'} {path:"./",component:'./CommunityManagement/VisitorRecord/VisitorRecord'}
] ]
}, },
] ]
}, },
...@@ -244,14 +244,24 @@ export default defineConfig({ ...@@ -244,14 +244,24 @@ export default defineConfig({
name: 'accountmanagement', name: 'accountmanagement',
icon:'UserSwitchOutlined', icon:'UserSwitchOutlined',
routes: [ routes: [
{ /* {
path: './AccountManagement', path: './AccountManagement',
name: 'accountmanagement1', name: 'accountmanagement1',
routes: [ routes: [
{path:'./',component: './AccountManagement/AccountManagement/Account'}, {path:'./',component: './AccountManagement/AccountManagement/Account'},
{path: './AccountManagementEdit',component:'./AccountManagement/AccountManagement/AccountManagement'}, {path: './AccountManagementEdit',component:'./AccountManagement/AccountManagement/AccountManagement'},
]
},*/
{
path: './account',
name: 'accountmanagement1',
routes: [
{path:'./',component: './AccountManagement/account/Account'},
{path: './edit',component:'./AccountManagement/account/AccountEdit'},
{path: './reset',component:'./AccountManagement/account/AccountReset'},
] ]
}, },
{ {
path: './CompanyInformation', path: './CompanyInformation',
name: 'companyinformation', name: 'companyinformation',
...@@ -279,7 +289,7 @@ export default defineConfig({ ...@@ -279,7 +289,7 @@ export default defineConfig({
}, },
], ],
// Theme for antd: https://ant.design/docs/react/customize-theme-cn // Theme for antd: https://ant.design/docs/react/customize-theme-cn
theme: { theme: {
// ...darkTheme, // ...darkTheme,
'primary-color': defaultSettings.primaryColor, 'primary-color': defaultSettings.primaryColor,
......
...@@ -86,15 +86,15 @@ export default { ...@@ -86,15 +86,15 @@ export default {
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^': '' }, pathRewrite: { '^': '' },
}, },
/* '/tos/': { '/tos/': {
target: 'http://47.74.233.180:8651', target: 'http://47.74.233.180:8651',
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^': '' }, pathRewrite: { '^': '' },
},*/ },
'/tos/': { /*'/tos/': {
target: 'http://localhost:8651', target: 'http://localhost:8651',
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^': '' }, pathRewrite: { '^': '' },
}, },*/
}, },
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment