“yueshang” 1 年之前
父節點
當前提交
19cb9d431a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/common.js

+ 1 - 1
utils/common.js

@@ -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);