From 022b1b28adca9a70158f5e05c966516f52f34e1a Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Tue, 3 Nov 2020 13:56:41 +0100 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BFilm=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E7=9A=84=E9=80=BB=E8=BE=91,=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Film.vue b/src/components/Film.vue index 8a1a58b..a7d92ae 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -560,8 +560,10 @@ export default { this.sites = res.filter((item, index, self) => { return self.indexOf(item) >= 0 && item.isActive }) - this.site = this.sites[0] - this.siteClick(this.site) + if (this.site === undefined || !this.sites.some(x => x.key === this.site.key)) { + this.site = this.sites[0] + this.siteClick(this.site) + } } }) }