template usage to modules
This commit is contained in:
parent
600bb47260
commit
2853835d31
9 changed files with 221 additions and 7 deletions
|
@ -19,7 +19,7 @@ export async function abilityAndNavUpdate(to: any, from: any, next: any) {
|
|||
next();
|
||||
} else {
|
||||
NProgress.done();
|
||||
next(false);
|
||||
next({ name: "admin-default" });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -431,6 +431,13 @@ const router = createRouter({
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "template-usage",
|
||||
name: "admin-settings-template_usage",
|
||||
component: () => import("@/views/admin/settings/templateUsage/TemplateUsage.vue"),
|
||||
meta: { type: "read", section: "settings", module: "template_usage" },
|
||||
beforeEnter: [abilityAndNavUpdate],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue