From 1df7b41eddc2ca0bd583b931003b276e30217b46 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Thu, 13 Aug 2020 22:04:50 +0200 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=B5=84=E6=BA=90=E7=BD=91=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Film.vue b/src/components/Film.vue index f158d49..7a3990f 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -88,6 +88,7 @@ {{i.type}} {{i.year}} {{i.last}} + {{i.site}} {{i.note}} 播放 @@ -397,9 +398,13 @@ export default { this.$message.info('无搜索结果') } if (type === '[object Array]') { - this.searchContents.push(...res) + res.forEach(element => { + element.site = this.site.name + this.searchContents.push(element) + }) } if (type === '[object Object]') { + res.site = this.site.name this.searchContents.push(res) } })