diff --git a/packages/fes-plugin-access/src/runtime/core.tpl b/packages/fes-plugin-access/src/runtime/core.tpl index 6ed11d9d..eecbc890 100644 --- a/packages/fes-plugin-access/src/runtime/core.tpl +++ b/packages/fes-plugin-access/src/runtime/core.tpl @@ -89,6 +89,8 @@ const setRole = async (roleId) => { throw new Error("[plugin-access]: argument to the setRole() must be string or promise"); } state.currentRoleId = roleId; + const roleAccessIds = state.roles[roleId] || []; + setAccess(roleAccessIds); }; const match = (path, accessIds) => { diff --git a/packages/fes-plugin-layout/src/runtime/views/MultiTabProvider.vue b/packages/fes-plugin-layout/src/runtime/views/MultiTabProvider.vue index 96b9e683..35b66f94 100644 --- a/packages/fes-plugin-layout/src/runtime/views/MultiTabProvider.vue +++ b/packages/fes-plugin-layout/src/runtime/views/MultiTabProvider.vue @@ -27,10 +27,11 @@