release v2.0.0 #4
|
@ -45,7 +45,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
function isGranted(val: FG_Plugin.MenuLink) {
|
function isGranted(val: FG_Plugin.MenuLink) {
|
||||||
return computed(() => hasPermissions(val.permissions || []));
|
return computed(() => hasPermissions(val.permissions || [])).value;
|
||||||
}
|
}
|
||||||
function getTitle(entry: FG_Plugin.MenuLink) {
|
function getTitle(entry: FG_Plugin.MenuLink) {
|
||||||
return computed(() => (typeof entry.title === 'function' ? entry.title() : entry.title)).value;
|
return computed(() => (typeof entry.title === 'function' ? entry.title() : entry.title)).value;
|
||||||
|
|
Loading…
Reference in New Issue