Commit 7c6a4900 by 杨北旺

编辑信息后同步userinfo员工和部门缓存

1 parent 3d932f03
const navStyle = "background-color: transparent;";
import MineApi from '~/api/mineApi/index'
import USERAPI from '~/api/usersApi/index'
import {
setUserInfo
} from '~/utils/cache/storageApi'
const DEPARTMENTLIST = ['销售部', '售后部', '客服部', '续保部',]
Page({
/**
......@@ -99,6 +102,10 @@ Page({
bussinessId: id,
...storage
}
// 更新缓存userinfo里面员工的姓名和员工部门
userStorage.name = staffName
userStorage.department = department
setUserInfo(userStorage)
return USERINFO
},
onLoad: function (options) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!