diff --git a/src/api/login/index.ts b/src/api/login/index.ts index fcda06f..d342031 100644 --- a/src/api/login/index.ts +++ b/src/api/login/index.ts @@ -33,8 +33,8 @@ export const loginOut = () => { } // 获取用户权限信息 -export const getInfo = () => { - return request.get({ url: '/system/auth/get-permission-info' }) +export const getInfo = (data) => { + return request.get({ url: '/system/auth/get-permission-info', data }) } //获取登录验证码 diff --git a/src/api/system/dept/index.ts b/src/api/system/dept/index.ts index d995f13..161ff68 100644 --- a/src/api/system/dept/index.ts +++ b/src/api/system/dept/index.ts @@ -18,7 +18,7 @@ export const getSimpleDeptList = async (): Promise => { } // 查询部门列表 -export const getDeptPage = async (params: PageParam) => { +export const getDeptPage = async (params) => { return await request.get({ url: '/system/dept/list', params }) } diff --git a/src/api/system/role/index.ts b/src/api/system/role/index.ts index e6548cb..d1a4428 100644 --- a/src/api/system/role/index.ts +++ b/src/api/system/role/index.ts @@ -23,7 +23,7 @@ export const getRolePage = async (params: PageParam) => { } // 查询角色(精简)列表 -export const getSimpleRoleList = async (): Promise => { +export const getSimpleRoleList = async () => { return await request.get({ url: '/system/role/list-all-simple' }) } diff --git a/src/layout/components/RoleSelect/index.vue b/src/layout/components/RoleSelect/index.vue index 54cddf5..d186a23 100644 --- a/src/layout/components/RoleSelect/index.vue +++ b/src/layout/components/RoleSelect/index.vue @@ -1,18 +1,22 @@ diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 3bc3eb8..100d449 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -436,5 +436,6 @@ export default { btn_zoom_in: '放大', btn_zoom_out: '缩小', preview: '预览' - } + }, + 'OAuth 2.0': 'OAuth 2.0' // 避免菜单名是 OAuth 2.0 时,一直 warn 报错 } diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 4bcb100..dce4ec9 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -50,7 +50,15 @@ const remainingRouter: AppRouteRecordRaw[] = [ noTagsView: true } }, - + { + path: '', + component: Layout, + redirect: '/Home/index', + meta: { + title: '首页', + hidden: true + } + }, { path: '/user', component: Layout, diff --git a/src/views/Basic/Dept/DeptForm.vue b/src/views/Basic/Dept/DeptForm.vue index f3bdf03..02f4334 100644 --- a/src/views/Basic/Dept/DeptForm.vue +++ b/src/views/Basic/Dept/DeptForm.vue @@ -43,8 +43,8 @@ - 启用 - 禁用 + 启用 + 禁用 diff --git a/src/views/Basic/Dept/index.vue b/src/views/Basic/Dept/index.vue index c14df8d..79d6572 100644 --- a/src/views/Basic/Dept/index.vue +++ b/src/views/Basic/Dept/index.vue @@ -22,8 +22,8 @@ - - + +