Skip to content

Commit

Permalink
🥝fix:修改注册bug
Browse files Browse the repository at this point in the history
  • Loading branch information
durunsong committed Nov 13, 2024
1 parent 425f44c commit 2111ef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/permission/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const permission: Directive = {
const { value: permissionRoles } = binding;
const { roles } = useUserStoreHook();
if (Array.isArray(permissionRoles) && permissionRoles.length > 0) {
const hasPermission = roles.some((role) =>
const hasPermission = roles.some((role: unknown) =>
permissionRoles.includes(role),
);
// hasPermission || (el.style.display = "none") // 隐藏
Expand Down
1 change: 1 addition & 0 deletions src/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ const toggleForm = () => {
const handlerExecutiveRegister = () => {
loading.value = true;
const params: any = form;
params.roles = [params.roles];
registerApi(params)
.then((res: any) => {
if (res.status === 200) {
Expand Down

0 comments on commit 2111ef2

Please sign in to comment.