[fix] return correct permissions
This commit is contained in:
parent
a30da50b1d
commit
36d6fdfb94
|
@ -45,7 +45,7 @@ export default defineComponent({
|
|||
},
|
||||
setup(props, { emit }) {
|
||||
function isGranted(val: FG_Plugin.MenuLink) {
|
||||
return computed(() => hasPermissions(val.permissions || []));
|
||||
return computed(() => hasPermissions(val.permissions || [])).value;
|
||||
}
|
||||
function getTitle(entry: FG_Plugin.MenuLink) {
|
||||
return computed(() => (typeof entry.title === 'function' ? entry.title() : entry.title)).value;
|
||||
|
|
Loading…
Reference in New Issue