fix ui
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<q-btn flat no-caps dense icon="account_circle" :label="userInfo.fullName">
|
<q-btn flat no-caps dense icon="account_circle" :label="userInfo.fullName">
|
||||||
<q-menu max-width="225px">
|
<q-menu class="bar-user-menu">
|
||||||
<div class="row no-wrap q-px-md q-pt-sm ">
|
<div class="row no-wrap q-px-md q-pt-sm ">
|
||||||
<div class="column items-center justify-center">
|
<div class="column items-center justify-center">
|
||||||
<q-icon name="account_circle" color="grey" size="3em" />
|
<q-icon name="account_circle" color="grey" size="3em" />
|
||||||
@@ -30,7 +30,10 @@ const authStore = useAuthStore();
|
|||||||
const userInfo = computed(() => authStore.userInfo);
|
const userInfo = computed(() => authStore.userInfo);
|
||||||
const roles = computed(() => authStore.roles);
|
const roles = computed(() => authStore.roles);
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" >
|
||||||
|
.bar-user-menu {
|
||||||
|
max-width: 230px !important;
|
||||||
|
}
|
||||||
.role-label {
|
.role-label {
|
||||||
margin: 2px;
|
margin: 2px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ onMounted(() => {
|
|||||||
|
|
||||||
function toggleLeftDrawer() {
|
function toggleLeftDrawer() {
|
||||||
getCurrentInstance();
|
getCurrentInstance();
|
||||||
debugger;
|
|
||||||
authStore.toggleLeftMenu();
|
authStore.toggleLeftMenu();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user