7ff732f6 by xukangle

fix

1 parent 1f136a9c
...@@ -36,6 +36,9 @@ function userCommand(command: 'home' | 'setting' | 'updatePwd' | 'hotkeys' | 'lo ...@@ -36,6 +36,9 @@ function userCommand(command: 'home' | 'setting' | 'updatePwd' | 'hotkeys' | 'lo
36 function pro() { 36 function pro() {
37 window.open('https://hooray.gitee.io/fantastic-admin-pro-example/', '_blank') 37 window.open('https://hooray.gitee.io/fantastic-admin-pro-example/', '_blank')
38 } 38 }
39 onMounted(() => {
40 console.log('mounted', JSON.parse(userStore.userData).abbreviation)
41 })
39 </script> 42 </script>
40 <template> 43 <template>
41 <div class="tools"> 44 <div class="tools">
...@@ -53,10 +56,16 @@ function pro() { ...@@ -53,10 +56,16 @@ function pro() {
53 <svg-icon name="ep:user-filled" /> 56 <svg-icon name="ep:user-filled" />
54 </el-icon> 57 </el-icon>
55 </el-avatar> 58 </el-avatar>
56 {{ userStore.userName }} 59 <div class="v-uerinfo">
57 <el-icon> 60 <div class="v-top">{{ userStore.userName }}</div>
58 <svg-icon name="ep:caret-bottom" /> 61 <div class="v-top"> {{ JSON.parse(userStore.userData).abbreviation }}</div>
59 </el-icon> 62 </div>
63 <div>
64 <el-icon>
65 <svg-icon name="ep:caret-bottom" />
66 </el-icon>
67 </div>
68
60 </div> 69 </div>
61 <template #dropdown> 70 <template #dropdown>
62 <el-dropdown-menu class="user-dropdown"> 71 <el-dropdown-menu class="user-dropdown">
...@@ -143,10 +152,26 @@ function pro() { ...@@ -143,10 +152,26 @@ function pro() {
143 cursor: pointer; 152 cursor: pointer;
144 153
145 .user-wrapper { 154 .user-wrapper {
155 display: flex;
156 align-items: center;
157 height: 100%;
158
159 .v-uerinfo {
160 display: flex;
161 flex-direction: column;
162 font-size: 12px;
163
164 .v-top {
165 height: 18px;
166 line-height: 18px;
167 }
168 }
169
146 .el-avatar { 170 .el-avatar {
147 vertical-align: middle; 171 vertical-align: middle;
148 margin-top: -2px; 172 margin-top: -2px;
149 margin-right: 4px; 173 margin-right: 4px;
150 } 174 }
151 } 175 }
152 }</style> 176 }
177 </style>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!