Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7c6a4900
authored
Oct 24, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
编辑信息后同步userinfo员工和部门缓存
1 parent
3d932f03
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
pages/tab/mine/mine.js
pages/tab/mine/mine.js
View file @
7c6a490
const
navStyle
=
"background-color: transparent;"
;
const
navStyle
=
"background-color: transparent;"
;
import
MineApi
from
'~/api/mineApi/index'
import
MineApi
from
'~/api/mineApi/index'
import
USERAPI
from
'~/api/usersApi/index'
import
USERAPI
from
'~/api/usersApi/index'
import
{
setUserInfo
}
from
'~/utils/cache/storageApi'
const
DEPARTMENTLIST
=
[
'销售部'
,
'售后部'
,
'客服部'
,
'续保部'
,]
const
DEPARTMENTLIST
=
[
'销售部'
,
'售后部'
,
'客服部'
,
'续保部'
,]
Page
({
Page
({
/**
/**
...
@@ -99,6 +102,10 @@ Page({
...
@@ -99,6 +102,10 @@ Page({
bussinessId
:
id
,
bussinessId
:
id
,
...
storage
...
storage
}
}
// 更新缓存userinfo里面员工的姓名和员工部门
userStorage
.
name
=
staffName
userStorage
.
department
=
department
setUserInfo
(
userStorage
)
return
USERINFO
return
USERINFO
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
...
...
Write
Preview
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