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) {