From 87bad1af0c203865d318befd9bf3af199896931e Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期一, 09 九月 2024 13:58:05 +0800
Subject: [PATCH] 一些改动

---
 src/pages/enterprise/index.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/pages/enterprise/index.vue b/src/pages/enterprise/index.vue
index 59e649e..bfb1dc9 100644
--- a/src/pages/enterprise/index.vue
+++ b/src/pages/enterprise/index.vue
@@ -1,8 +1,8 @@
 <template>
 	<view class="">
-		<view class="content chuany-flex chuany-align-end chuany-justify-center">
+		<!-- <view class="content chuany-flex chuany-align-end chuany-justify-center">
 			<up-avatar :src="avatarUrlImg" shape="circle" size='80'></up-avatar>
-		</view>
+		</view> -->
 		<fui-list :topBorder='false'>
 			<fui-list-cell arrow :bottomBorder='false' :padding="['20rpx', '32rpx', '20rpx', '32rpx']">
 				<view class="fui-list__item">
@@ -43,7 +43,7 @@
 		$db
 	} = getCurrentInstance().appContext.config.globalProperties
 	onShow(() => {
-		let data = JSON.parse($db.get('userInfo')).userCompany
+		let data = $db.get('userInfo') ? JSON.parse($db.get('userInfo')).userCompany : null
 		if (data) {
 			enterpriseInfo.businessLicense = data.businessLicense
 			enterpriseInfo.suppliername = data.suppliername //浼佷笟鍚嶇О
@@ -56,11 +56,11 @@
 			enterpriseInfo.resume = data.resume
 		}
 	})
-	
+
 	let avatarUrlImg = ref('')
 	onLoad(() => {
 		// getUser()
-		let obj = $db.get('userInfo')?JSON.parse($db.get('userInfo')):{}
+		let obj = $db.get('userInfo') ? JSON.parse($db.get('userInfo')) : {}
 		avatarUrlImg = obj.avatar
 	})
 	const enterpriseInfo = reactive({

--
Gitblit v1.9.1