diff --git a/src/layouts/components/DefaultLayoutWithVerticalNav.vue b/src/layouts/components/DefaultLayoutWithVerticalNav.vue index 026e9ebe..4be44e86 100644 --- a/src/layouts/components/DefaultLayoutWithVerticalNav.vue +++ b/src/layouts/components/DefaultLayoutWithVerticalNav.vue @@ -91,7 +91,6 @@ const superUser = store.state.auth.superUser }" /> 0" class="fixed right-5 bottom-5"> { - return dataList.value.filter(data => data.type === props.type) + if (superUser) + return dataList.value.filter(data => data.type === props.type) + else + return dataList.value.filter(data => data.type === props.type && data.username === userName) })