Przeglądaj źródła

新任命调整

Xiao_123 4 miesięcy temu
rodzic
commit
cfdeea5187

+ 3 - 2
src/views/recruit/enterprise/newlyAppointed/index.vue

@@ -22,11 +22,11 @@
 		</CtTable>
 	</v-card>
 
-	<v-navigation-drawer v-model="showDetail" absolute location="right" rounded temporary width="500" class="pa-5">
+	<v-navigation-drawer v-model="showDetail" absolute location="right" rounded temporary width="700" class="pa-5">
 		<div style="width: 300px; height: 300px; margin: 0 auto;">
 			<v-img :src="detail?.picUrl" width="300" height="300" />
 		</div>
-		<div class="mt-10" v-html="detail?.detailIntroduction"></div>
+		<div class="mt-10" v-if="detail?.detailIntroduction" v-html="detail?.detailIntroduction.replace(/\n/g, '</br>')"></div>
 	</v-navigation-drawer>
 
 	<!-- 无权限提示 -->
@@ -198,6 +198,7 @@ const handleDetail = async (item) => {
 		return
 	}
 	const result = await getNewAppointmentsDetail(item.id)
+	if (!result || !Object.keys(result).length) return Snackbar.warning('暂无详细信息,去查看其他人的信息吧~') 
 	detail.value = result
 	showDetail.value = true
 }