From 3dd8c06ffd41dd144d1f1ff8ca33ee07aeed48d7 Mon Sep 17 00:00:00 2001 From: lucky Date: Tue, 19 Jan 2021 18:03:50 +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 | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/views/NewPlatform/Children/ShareChild/Institute.vue b/src/views/NewPlatform/Children/ShareChild/Institute.vue index 4e21f81..805278e 100644 --- a/src/views/NewPlatform/Children/ShareChild/Institute.vue +++ b/src/views/NewPlatform/Children/ShareChild/Institute.vue @@ -53,8 +53,8 @@

{{ obj.direction }}

- + @@ -131,7 +133,7 @@ export default { const res = await selInstrumentByRes(params); const { code, msg, data } = res.data; if (code === 200) { - if (data.list !== []) { + if (data.list && data.list.length > 0) { this.list = data.list; this.total = parseInt(data.total); } @@ -147,9 +149,8 @@ export default { const res = await teamSearch(params); const { code, msg, data } = res.data; if (code === 200) { - if (data !== [] && data.length > 0) { + if (data && data.length > 0) { this.obj = data[0]; - console.log('this.obj: ', this.obj); } } } catch (error) {