Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
video-monitoring
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
video-monitoring
Commits
58e4edca
Commit
58e4edca
authored
Aug 07, 2024
by
拾柒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改根据当前登录人查询姓名
parent
74d26681
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
user.js
src/api/system/user.js
+2
-5
Navbar.vue
src/layout/components/Navbar.vue
+1
-1
No files found.
src/api/system/user.js
View file @
58e4edca
...
...
@@ -136,13 +136,10 @@ export function deptTreeSelect() {
}
// 根据用户名查询实际名称
export
function
showName
(
userName
)
{
export
function
showName
()
{
return
request
({
url
:
'/system/user/showName'
,
method
:
'get'
,
params
:
{
username
:
userName
}
method
:
'get'
})
}
src/layout/components/Navbar.vue
View file @
58e4edca
...
...
@@ -114,7 +114,7 @@ export default {
RuoYiDoc
},
mounted
()
{
showName
(
Cookies
.
get
(
'username'
)
).
then
(
response
=>
{
showName
().
then
(
response
=>
{
if
(
response
.
code
===
200
){
this
.
username
=
response
.
msg
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment