Skip to content

Commit

Permalink
feature(router): 管理页面添加进入权限判断
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacker233 committed Jan 9, 2025
1 parent aa66158 commit 3a9b63e
Show file tree
Hide file tree
Showing 4 changed files with 231 additions and 87 deletions.
1 change: 1 addition & 0 deletions src/assets/images/no-permission.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/http/api/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,11 @@ export const qqLoginASync: any = (params: any) => {
params: params
});
};

// 判断用户是否拥有管理权限
export const getUserPermissionAsync: any = () => {
return http.request({
url: '/huajian/users/getUserPermission',
method: 'get'
});
};
Loading

0 comments on commit 3a9b63e

Please sign in to comment.