Refactor MasterDetailMntC.vue for improved readability and consistency

This commit is contained in:
skytek_xinliang
2026-03-30 09:18:55 +08:00
parent 7591ecd062
commit 16b58fbf7a
66 changed files with 2071 additions and 777 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ export function registerGuards(router: Router) {
// Role-based access control (RBAC)
if (to.meta.roles?.length && !hasAll(to.meta.roles, auth.roles)) {
return { name: 'forbidden' }
}
return { name: 'forbidden' }
}
return true
})
+1 -1
View File
@@ -24,7 +24,7 @@ const router = createRouter({
registerGuards(router)
function getErrorRouteName (status?: number) {
function getErrorRouteName(status?: number) {
switch (status) {
case 403: {
return 'forbidden'