From cadc6828b72563032750c7b8af65b9c84f9453a8 Mon Sep 17 00:00:00 2001 From: lucky Date: Tue, 19 Jan 2021 17:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=89=88=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Children/ShareChild/Institute.vue | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/views/NewPlatform/Children/ShareChild/Institute.vue b/src/views/NewPlatform/Children/ShareChild/Institute.vue index 1e31957..4e21f81 100644 --- a/src/views/NewPlatform/Children/ShareChild/Institute.vue +++ b/src/views/NewPlatform/Children/ShareChild/Institute.vue @@ -7,17 +7,22 @@

研究院介绍

-
123
+
研究院介绍

设备列表

-
+

{{ item.name }}

了解更多→

-

人才团队带头人情况

-
+

人才团队带头人情况

+

姓名

性别

@@ -69,7 +74,7 @@
{{ item.position }}
{{ item.direction }}
-
--> +
-->
@@ -95,7 +100,7 @@ export default { { name: '科技资源开放共享服务平台', url: '/NewPlatform/Share' }, { name: '研究院详情', url: '' }, ], - obj: {}, + obj: null, list: [], }; }, @@ -142,8 +147,9 @@ export default { const res = await teamSearch(params); const { code, msg, data } = res.data; if (code === 200) { - if (data !== []) { + if (data !== [] && data.length > 0) { this.obj = data[0]; + console.log('this.obj: ', this.obj); } } } catch (error) {