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