mirror of https://github.com/halo-dev/halo
36 lines
844 B
TypeScript
36 lines
844 B
TypeScript
import BasicLayout from "@console/layouts/BasicLayout.vue";
|
|
import { definePlugin } from "@halo-dev/console-shared";
|
|
import RoleDetail from "./RoleDetail.vue";
|
|
import RoleList from "./RoleList.vue";
|
|
|
|
export default definePlugin({
|
|
components: {},
|
|
routes: [
|
|
{
|
|
path: "/users/roles",
|
|
component: BasicLayout,
|
|
children: [
|
|
{
|
|
path: "",
|
|
name: "Roles",
|
|
component: RoleList,
|
|
meta: {
|
|
title: "core.role.title",
|
|
searchable: true,
|
|
permissions: ["system:roles:view"],
|
|
},
|
|
},
|
|
{
|
|
path: ":name",
|
|
name: "RoleDetail",
|
|
component: RoleDetail,
|
|
meta: {
|
|
title: "core.role.detail.title",
|
|
permissions: ["system:roles:view"],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|