fix: role page route on the user details page

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/590/head
Ryan Wang 2022-07-20 12:33:38 +08:00
parent 9c5014766b
commit 65fdfd6749
2 changed files with 2 additions and 3 deletions

View File

@ -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 />

View File

@ -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"
);
});