diff --git a/components.d.ts b/components.d.ts index fe2b2b7..a534ca1 100644 --- a/components.d.ts +++ b/components.d.ts @@ -10,7 +10,6 @@ declare module '@vue/runtime-core' { Countup: typeof import('./src/components/countup.vue')['default'] ElAvatar: typeof import('element-plus/es')['ElAvatar'] ElButton: typeof import('element-plus/es')['ElButton'] - ElCalendar: typeof import('element-plus/es')['ElCalendar'] ElCard: typeof import('element-plus/es')['ElCard'] ElCarousel: typeof import('element-plus/es')['ElCarousel'] ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem'] @@ -19,7 +18,6 @@ declare module '@vue/runtime-core' { ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] ElCol: typeof import('element-plus/es')['ElCol'] ElColorPicker: typeof import('element-plus/es')['ElColorPicker'] - ElCountdown: typeof import('element-plus/es')['ElCountdown'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] @@ -44,14 +42,10 @@ declare module '@vue/runtime-core' { ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRate: typeof import('element-plus/es')['ElRate'] - ElResult: typeof import('element-plus/es')['ElResult'] ElRow: typeof import('element-plus/es')['ElRow'] ElSelect: typeof import('element-plus/es')['ElSelect'] ElSlider: typeof import('element-plus/es')['ElSlider'] - ElSpace: typeof import('element-plus/es')['ElSpace'] ElStatistic: typeof import('element-plus/es')['ElStatistic'] - ElStep: typeof import('element-plus/es')['ElStep'] - ElSteps: typeof import('element-plus/es')['ElSteps'] ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElTable: typeof import('element-plus/es')['ElTable'] @@ -63,11 +57,8 @@ declare module '@vue/runtime-core' { ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem'] ElTimePicker: typeof import('element-plus/es')['ElTimePicker'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] - ElTour: typeof import('element-plus/es')['ElTour'] - ElTourStep: typeof import('element-plus/es')['ElTourStep'] ElTransfer: typeof import('element-plus/es')['ElTransfer'] ElUpload: typeof import('element-plus/es')['ElUpload'] - ElWatermark: typeof import('element-plus/es')['ElWatermark'] Header: typeof import('./src/components/header.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/public/mock/role.json b/public/mock/role.json index 3ee9f89..6be057f 100644 --- a/public/mock/role.json +++ b/public/mock/role.json @@ -5,41 +5,14 @@ "name": "管理员", "key": "admin", "status": true, - "permiss": [ - "0", - "1", - "11", - "12", - "13", - "2", - "21", - "22", - "23", - "24", - "3", - "31", - "32", - "33", - "331", - "332", - "4", - "41", - "42", - "5" - ] + "permiss": [ "0", "1", "11", "12", "13", "14", "2", "21", "22", "23", "24", "3", "31", "32", "33", "331", "332", "4", "41", "42", "5" ] }, { "id": 2, "name": "普通用户", "key": "user", "status": true, - "permiss": [ - "0", - "1", - "11", - "12", - "13" - ] + "permiss": [ "0", "1", "11", "12", "13" ] } ], "pageTotal": 2 diff --git a/public/mock/user.json b/public/mock/user.json index 079b73b..1c6171a 100644 --- a/public/mock/user.json +++ b/public/mock/user.json @@ -17,7 +17,25 @@ "phone": "12345678945", "date": "2024-01-01", "role": "普通用户" + }, + { + "id": 3, + "name": "test1", + "password": "123", + "email": "test1@qq.com", + "phone": "12345678946", + "date": "2024-01-01", + "role": "管理员" + }, + { + "id": 4, + "name": "test2", + "password": "123", + "email": "test2@qq.com", + "phone": "12345678947", + "date": "2024-01-01", + "role": "普通用户" } ], - "pageTotal": 2 + "pageTotal": 4 } \ No newline at end of file diff --git a/src/components/menu.ts b/src/components/menu.ts index 2644432..60681bb 100644 --- a/src/components/menu.ts +++ b/src/components/menu.ts @@ -25,12 +25,7 @@ export const menuData: Menus[] = [ index: '/system-role', title: '角色管理', }, - { - id: '13', - pid: '1', - index: '/system-menu', - title: '菜单管理', - }, + { id: '13', pid: '1', index: '/system-menu', title: '菜单管理', }, { id: '14', pid: '1', index: '/system-permission', title: '权限管理', }, ], }, {