mirror of https://github.com/halo-dev/halo-admin
fix: role page route on the user details page
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/590/head
parent
9c5014766b
commit
65fdfd6749
|
@ -52,7 +52,7 @@ const router = useRouter();
|
|||
<VTag
|
||||
v-for="(role, index) in roles"
|
||||
:key="index"
|
||||
@click="router.push({ name: 'RoleDetail', params: { id: 1 } })"
|
||||
@click="router.push({ name: 'RoleDetail', params: { name: role } })"
|
||||
>
|
||||
<template #leftIcon>
|
||||
<IconUserSettings />
|
||||
|
|
|
@ -57,8 +57,7 @@ const creationModalTitle = computed(() => {
|
|||
|
||||
const basicRoles = computed(() => {
|
||||
return roles.value.filter(
|
||||
(role) =>
|
||||
role.metadata?.labels?.["plugin.halo.run/role-template"] !== "true"
|
||||
(role) => role.metadata?.labels?.["halo.run/role-template"] !== "true"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue