refactor: add default img admin
This commit is contained in:
parent
a830118021
commit
a4b7df62eb
3 changed files with 8 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
import { ref, onMounted, watch } from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { useQuasar } from 'quasar';
|
||||
import { getUserId, getUsername, logout } from 'src/services/keycloak';
|
||||
import { getUserId, getUsername, logout, getRole } from 'src/services/keycloak';
|
||||
import { Icon } from '@iconify/vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
|
|
@ -455,6 +455,9 @@ onMounted(async () => {
|
|||
canvasModal = true;
|
||||
}
|
||||
"
|
||||
:user-image="
|
||||
getRole()?.includes('system') ? '/img-admin.png' : ' '
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue