Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
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
office
haoban-4
Commits
e9528d49
Commit
e9528d49
authored
Aug 11, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改登录信息
parent
d317681d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
vue-office-header.vue
src/components/vue-office-header.vue
+14
-8
No files found.
src/components/vue-office-header.vue
View file @
e9528d49
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-10-10 17:21:32
* @LastEditors: 无尘
* @LastEditTime: 2020-08-1
0 14:49:51
* @LastEditTime: 2020-08-1
1 12:14:45
-->
<
template
>
<div
class=
"nav-header"
>
...
...
@@ -98,6 +98,7 @@ export default {
phoneNumber
:
''
,
headImg
:
''
,
wxEnterpriseId
:
''
,
roleName
:
''
}
};
},
...
...
@@ -183,15 +184,20 @@ export default {
.
then
(
res
=>
{
if
(
!
res
.
result
)
{
res
.
result
=
{
staffName
:
''
,
nationCode
:
''
,
phoneNumber
:
''
,
headImg
:
''
,
wxEnterpriseId
:
''
,
loginStaff
:
{
staffName
:
''
,
nationCode
:
''
,
phoneNumber
:
''
,
headImg
:
''
,
wxEnterpriseId
:
''
,
},
role
:
{
roleName
:
''
}
};
}
localStorage
.
setItem
(
'haoBanUser'
,
JSON
.
stringify
(
res
.
result
));
that
.
userInfo
=
res
.
result
;
localStorage
.
setItem
(
'haoBanUser'
,
JSON
.
stringify
(
res
.
result
.
loginStaff
));
that
.
userInfo
=
Object
.
assign
(
res
.
result
.
loginStaff
,
res
.
result
.
role
)
;
that
.
getData
();
})
.
catch
(
function
(
error
)
{
...
...
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