完成:黄家明项目的开发并存档
This commit is contained in:
@@ -43,6 +43,14 @@ const Header = (props: any) => {
|
||||
if(data.certification){
|
||||
Taro.setStorageSync('Certification','1')
|
||||
}
|
||||
// 安装人员
|
||||
const isInstaller = data.roles?.findIndex(item => item.roleCode == 'Installer')
|
||||
if(isInstaller != -1){
|
||||
setRoleName('安装人员')
|
||||
Taro.setStorageSync('RoleName', '安装人员')
|
||||
Taro.setStorageSync('RoleCode', 'Installer')
|
||||
return false;
|
||||
}
|
||||
// 管理员
|
||||
const isKdy = data.roles?.findIndex(item => item.roleCode == 'admin')
|
||||
if(isKdy != -1){
|
||||
|
||||
Reference in New Issue
Block a user