Commit 58e4edca authored by 拾柒's avatar 拾柒

修改根据当前登录人查询姓名

parent 74d26681
......@@ -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'
})
}
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment