From 005bdf7ea6d9a68c96ccded98cf870a7acd626ec Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Mon, 26 Oct 2020 16:19:48 +0100 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E5=90=AC=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=94=B6=E8=97=8F=E5=8F=8A=E6=BA=90=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Star.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Star.vue b/src/components/Star.vue index f06ce46..88ce7ac 100644 --- a/src/components/Star.vue +++ b/src/components/Star.vue @@ -126,6 +126,12 @@ export default { } } }, + watch: { + view () { + this.getAllsites() + this.getFavorites() + } + }, methods: { ...mapMutations(['SET_VIEW', 'SET_DETAIL', 'SET_VIDEO', 'SET_SHARE']), handleSortChange (column, prop, order) {