permission system and no access redirect
This commit is contained in:
parent
214f0ddf21
commit
cb80771f7a
8 changed files with 107 additions and 18 deletions
|
@ -42,6 +42,11 @@ const router = createRouter({
|
|||
component: () => import("../views/admin/View.vue"),
|
||||
beforeEnter: [isAuthenticated],
|
||||
},
|
||||
{
|
||||
path: "/nopermissions",
|
||||
name: "nopermissions",
|
||||
component: () => import("../views/NoPermission.vue"),
|
||||
},
|
||||
{
|
||||
path: "/:pathMatch(.*)*",
|
||||
name: "404",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue