完成:黄家明项目的开发并存档
This commit is contained in:
@@ -228,6 +228,7 @@ function Home() {
|
||||
if (!Taro.getStorageSync('access_token')) {
|
||||
return false;
|
||||
}
|
||||
pageHjmCarByMap(latitude, longitude)
|
||||
if (!isAdmin) {
|
||||
return false;
|
||||
}
|
||||
@@ -315,6 +316,9 @@ function Home() {
|
||||
console.log('交警', '12312')
|
||||
setIsAdmin(true)
|
||||
}
|
||||
if (Taro.getStorageSync('RoleCode') == 'Installer') {
|
||||
setIsAdmin(true)
|
||||
}
|
||||
setUserInfo(data)
|
||||
setIsLogin(true);
|
||||
Taro.setStorageSync('UserId', data.userId)
|
||||
|
||||
Reference in New Issue
Block a user