Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7ff732f6
authored
2025-01-24 15:42:01 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
1f136a9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
src/layouts/components/Tools/index.vue
src/layouts/components/Tools/index.vue
View file @
7ff732f
...
...
@@ -36,6 +36,9 @@ function userCommand(command: 'home' | 'setting' | 'updatePwd' | 'hotkeys' | 'lo
function
pro
()
{
window
.
open
(
'https://hooray.gitee.io/fantastic-admin-pro-example/'
,
'_blank'
)
}
onMounted
(()
=>
{
console
.
log
(
'mounted'
,
JSON
.
parse
(
userStore
.
userData
).
abbreviation
)
})
</
script
>
<
template
>
<div
class=
"tools"
>
...
...
@@ -53,11 +56,17 @@ function pro() {
<svg-icon
name=
"ep:user-filled"
/>
</el-icon>
</el-avatar>
{{
userStore
.
userName
}}
<div
class=
"v-uerinfo"
>
<div
class=
"v-top"
>
{{
userStore
.
userName
}}
</div>
<div
class=
"v-top"
>
{{
JSON
.
parse
(
userStore
.
userData
).
abbreviation
}}
</div>
</div>
<div>
<el-icon>
<svg-icon
name=
"ep:caret-bottom"
/>
</el-icon>
</div>
</div>
<template
#
dropdown
>
<el-dropdown-menu
class=
"user-dropdown"
>
<!--
<el-dropdown-item
command=
"setting"
>
...
...
@@ -143,10 +152,26 @@ function pro() {
cursor
:
pointer
;
.user-wrapper
{
display
:
flex
;
align-items
:
center
;
height
:
100%
;
.v-uerinfo
{
display
:
flex
;
flex-direction
:
column
;
font-size
:
12px
;
.v-top
{
height
:
18px
;
line-height
:
18px
;
}
}
.el-avatar
{
vertical-align
:
middle
;
margin-top
:
-2px
;
margin-right
:
4px
;
}
}
}
</
style
>
}
</
style
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment