|
@@ -177,7 +177,7 @@ export function takePhotos(vm) {
|
|
|
}
|
|
|
export function choiceStreet(vm) {
|
|
|
const deptValue = uni.getStorageSync('getDepartment_key'); //所有部门
|
|
|
- const deptId = uni.getStorageSync('getUserInfo_key').streetInfo.id; //登录用户
|
|
|
+ const deptId =uni.getStorageSync('getUserInfo_key').streetInfo?uni.getStorageSync('getUserInfo_key').streetInfo.id:''; //登录用户
|
|
|
var newArrar = {}; //新对象
|
|
|
if (deptId) {
|
|
|
console.log(deptValue, 'deptValue部门', deptId);
|