diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index 38e66d67d..0247bb4d6 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -102,7 +102,7 @@ function saveUserData(param, value) { axios.post('UserConfigs/setUserConfig', { [param]: value }); localUserData(); } -const isEmployee = computed(() => useRole().hasAny(['employee'])); +const isEmployee = computed(() => useRole().isEmployee());