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
|
<VTag
|
||||||
v-for="(role, index) in roles"
|
v-for="(role, index) in roles"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="router.push({ name: 'RoleDetail', params: { id: 1 } })"
|
@click="router.push({ name: 'RoleDetail', params: { name: role } })"
|
||||||
>
|
>
|
||||||
<template #leftIcon>
|
<template #leftIcon>
|
||||||
<IconUserSettings />
|
<IconUserSettings />
|
||||||
|
|
|
@ -57,8 +57,7 @@ const creationModalTitle = computed(() => {
|
||||||
|
|
||||||
const basicRoles = computed(() => {
|
const basicRoles = computed(() => {
|
||||||
return roles.value.filter(
|
return roles.value.filter(
|
||||||
(role) =>
|
(role) => role.metadata?.labels?.["halo.run/role-template"] !== "true"
|
||||||
role.metadata?.labels?.["plugin.halo.run/role-template"] !== "true"
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue