fix: roleDonotExist tip (#349)

This commit is contained in:
Dream Hunter
2024-07-14 20:09:21 +08:00
committed by GitHub
parent 75c48beb3b
commit f3a1d980c5

View File

@@ -301,7 +301,7 @@ const getRoleDomains = (role) => {
}
const roleDonotExist = computed(() => {
return !userRoles.value.some(r => r.role === curUserRole.value);
return curUserRole.value && !userRoles.value.some(r => r.role === curUserRole.value);
})
watch([page, pageSize], async () => {